Support

Account

Home Forums Backend Issues (wp-admin) Backend shows information only of own user Reply To: Backend shows information only of own user

  • Yes, this works for me. The cache made me crazy!

    
    add_action( 'pre_get_posts', 'filtre');
    function filtre($query) {
    	global $user_ID;
    	//global $current_user;
    	if( !is_admin() ) {
    		$query->set('author',  $user_ID);
    		//$query->set('author',$current_user->id);
    	}
    	
    	return $query;
    }
    

    Now I’m gonna try to filter the media, taxonomies and ACF. Will see if there’s a problems!