Is there any way to allow "Authors" to be able to edit pages for which they are assigned as the "Owner" but not allow them to edit other pages? Setting the user as an "Editor" allows them to edit all pages.
I would like to allow the staff of an organization to be able to edit their own department pages, but not everyone else's.
Role Manager plugin: Role Manager for WordPress << WordPress Plugin, which works fine with 2.8.5.
This plugin will restrict so that user can only edit their posts and pages:
<?php
/*
Plugin Name: Edit only Your Posts and Pages
Version: 1.0
Plugin URI: http://wordpress.org/support/topic/287591?replies=24#post-1214104
Description: Only show pages for current user in edit posts/pages
Author: t31os_
Author URI: http://wordpress.org/support/topic/287591?replies=24#post-1214104
*/
function posts_for_current_author($query) {
if($query->is_admin) {
global $user_ID;
$query->set('author', $user_ID);
}
return $query;
}
add_filter('pre_get_posts', 'posts_for_current_author');
?>
Save that as edit-only-your-posts-and-pages.php in your plugins folder.
Good idea; that plugin is easier to use then Role Manager.
patter38
Member
Posted 2 years ago #
Works fine for left nav... Thank you!
... but the dashboard shows "totals" still... how can we fix that, too?
Yes, I am greedy... :)
Oh, it doesn't filter "links"...