WordPress.org

Support

Support » Plugins and Hacks » Show only events that belong to user in admin panel

Show only events that belong to user in admin panel

Viewing 1 replies (of 1 total)
  • as follow up, this is what I am using to hide posts from authors that are not theirs. I am looking for the wp calendar equivalent.

    thanks

    ==================================

    function posts_for_current_author($query) {

    global $userdata;
    if($userdata->user_level < 10){

    if($query->is_admin) {
    global $user_ID;
    $query->set(‘author’, $user_ID);
    }
    return $query;
    }
    }

    add_action( ‘admin_head’, ‘include_mk_arrays’ );

Viewing 1 replies (of 1 total)
  • The topic ‘Show only events that belong to user in admin panel’ is closed to new replies.