WordPress.org

Forums

WP Calendar
Show only events that belong to user in admin panel (2 posts)

  1. 41steps
    Member
    Posted 1 year ago #

    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/

  2. 41steps
    Member
    Posted 1 year ago #

    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' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic