Hi Team,
Is there any function or option to enable ACF Group under pages/posts or custom post type to non-admin user’s dashboard?
Thanks in advance.
Group location rules Current User Role
I did it but it still not working.
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'get-items:retrieve') {
return $query;
}
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'loadSpecialMenu') {
$query = apply_filters( 'ait_alter_ajax_query', $query );
return $query;
}
/* Display posts in admin for current user only */
$wp_user = wp_get_current_user();
if(isCityguideUser($wp_user->roles)){
$query->set('author', $wp_user->data->ID);
}
If I comment this line($query->set(‘author’, $wp_user->data->ID)) then field were showing. But issue is item list of other users also visible in current user dashboard.
Kindly this screenshot(https://prnt.sc/lil3x5), if no item is added by user, other users items were showing.