Support » Plugin: WP Calendar » Show only events that belong to user in admin panel

  • 41steps

    (@41steps)


    Hi

    Is there an elegant way to show only the posts that belong to the logged in user ( other than admin level ) when viewing the edit screen?

    I know there is a category filter, but I am looking for a solution that doesn’t involve user interaction.

    Thanks

    http://wordpress.org/plugins/wp-calendar/

Viewing 1 replies (of 1 total)
  • 41steps

    (@41steps)

    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.