I am using a plugin to limit what posts authors see and it doesn't work with …
-
I am using a plugin that limits what posts authors see. In fact, it only shows them their posts that they have published. I have looked at the code and it is this.
<?php /* Plugin Name: Simplify Post Edit List Description: Show only the author's posts in the edit list Version: 0.1 License: GPL Author: Sarah Gooding Author URI: https://untame.net */ function mypo_parse_query_useronly( $wp_query ) { if ( strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/edit.php' ) !== false ) { if ( !current_user_can( 'update_core' ) ) { global $current_user; $wp_query->set( 'author', $current_user->id ); } } } add_filter('parse_query', 'mypo_parse_query_useronly' ); ?>
What would I put in place of ‘author’ so that the co-author can see the posts they have co-authored because currently only the first author sees the posts.
Thanks
Garret
eWebify
- The topic ‘I am using a plugin to limit what posts authors see and it doesn't work with …’ is closed to new replies.