WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Moderator Role

Add a real Comments Moderator Role to your powerful WordPress Blog!

I just want my moderators can moderate their own comments, is this possible?

Yes, you can play with my filter named "allow_moderate_all_comments", example of use (add this in your functions.php from theme folder): 1. Code: add_filter( 'allow_moderate_all_comments', '__return_false' ); // This will remove the "all comments" moderation 1. or we can check a user meta to allow one user to be kind of "admin moderator", example with a moderator user, with ID 123

function check_moderator()
{
    return $GLOBALS['current_user']->ID == 123;
}
add_filter( 'allow_moderate_all_comments', 'check_moderator' );

I use a plugin that adds a page for comment stuff, this page is not here, you're mean!

No worry, i've think about it! Use the filter "allowed_moderator_menus" and add your plugins pages. Example of use:

function add_my_plugin_page_for_moderator_menu_this_function_got_a_very_long_name_damn_it( $pages )
{
    $pages[] = __( 'My plugin page menu name', 'plugin_context' );
}
add_action( 'allowed_moderator_menus', 'add_my_plugin_page_for_moderator_menu_this_function_got_a_very_long_name_damn_it' );

Ok, now i can see a plugin menu in my admin bar and i don't want it!!

Same stuff! use this filter "baw_before_admin_bar_render", example:

function remove_my_plugin_in_admin_bar( &$wp_admin_bar )
{
    $wp_admin_bar->remove_menu('my-bad-plugin');
}
add_action( 'baw_before_admin_bar_render', 'remove_my_plugin_in_admin_bar' );

Requires: 3.1 or higher
Compatible up to: 3.9.1
Last Updated: 2014-3-20
Downloads: 2,001

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
0,1,0
0,1,0
100,1,1