{"id":17141,"date":"2012-03-07T15:59:39","date_gmt":"2012-03-07T15:59:39","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/baw-moderator-role\/"},"modified":"2015-08-11T23:00:03","modified_gmt":"2015-08-11T23:00:03","slug":"baw-moderator-role","status":"closed","type":"plugin","link":"https:\/\/roh.wordpress.org\/plugins\/baw-moderator-role\/","author":6016133,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.6","stable_tag":"trunk","tested":"4.3.34","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"BAW Moderator Role","header_author":"Juliobox","header_description":"","assets_banners_color":"e8e8e8","last_updated":"2015-08-11 23:00:03","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=KJGT942XKWJ6W","header_plugin_uri":"http:\/\/boiteaweb.fr\/plugin-moderator-role-3331.html","header_author_uri":"http:\/\/wp-rocket.me","rating":3.8,"author_block_rating":0,"active_installs":100,"downloads":6118,"num_ratings":5,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>None<\/p>"},"ratings":{"1":"1","2":0,"3":"1","4":0,"5":"3"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"515896","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"604556","resolution":"1","location":"assets"}},"screenshots":{"1":"The new little menu"}},"plugin_section":[],"plugin_tags":[131,81,9455,3710,2153],"plugin_category":[54,58],"plugin_contributors":[78208],"plugin_business_model":[],"class_list":["post-17141","plugin","type-plugin","status-closed","hentry","plugin_tags-comment","plugin_tags-member","plugin_tags-moderator","plugin_tags-role","plugin_tags-user","plugin_category-security-and-spam-protection","plugin_category-user-management","plugin_contributors-juliobox","plugin_committers-juliobox"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/baw-moderator-role_e8e8e8.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/baw-moderator-role\/assets\/screenshot-1.png?rev=604556","caption":"The new little menu"}],"raw_content":"<!--section=description-->\n<p>Just install the plugin, activate it: You can now change a user's role to \"Moderator\", he can now moderate comments (all or only his), and only do this!<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <em>\"baw-moderator-role\"<\/em> folder into the <em>\"\/wp-content\/plugins\/\"<\/em> directory<\/li>\n<li>Activate the plugin through the <em>\"Plugins\"<\/em> menu in WordPress<\/li>\n<li>You can now change a user's role to \"Moderator\", he can now moderate comments (all or only his see FAQ), and only do this!<\/li>\n<li>All moderators will receive an email when a non approved comment is awaiting moderation.<\/li>\n<li>See FAQ for filters\/actions usage<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>I just want my moderators can moderate their own comments, is this possible?<\/dt>\n<dd><p>Yes, you can play with my filter named \"allow_moderate_all_comments\", example of use (add this in your functions.php from theme folder):\n1. Code: <code>add_filter( 'allow_moderate_all_comments', '__return_false' ); \/\/ This will remove the \"all comments\" moderation<\/code>\n1. 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\n    function check_moderator()\n    {\n        return $GLOBALS['current_user']-&gt;ID == 123;\n    }\n    add_filter( 'allow_moderate_all_comments', 'check_moderator' );<\/p><\/dd>\n<dt>I use a plugin that adds a page for comment stuff, this page is not here, you're mean!<\/dt>\n<dd><p>No worry, i've think about it!\nUse the filter \"allowed_moderator_menus\" and add your plugins pages. Example of use:\n    function add_my_plugin_page_for_moderator_menu_this_function_got_a_very_long_name_damn_it( $pages )\n    {\n        $pages[] = __( 'My plugin page menu name', 'plugin_context' );\n    }\n    add_action( 'allowed_moderator_menus', 'add_my_plugin_page_for_moderator_menu_this_function_got_a_very_long_name_damn_it' );<\/p><\/dd>\n<dt>Ok, now i can see a plugin menu in my admin bar and i don't want it!!<\/dt>\n<dd><p>Same stuff! use this filter \"baw_before_admin_bar_render\", example:\n    function remove_my_plugin_in_admin_bar( &amp;$wp_admin_bar )\n    {\n        $wp_admin_bar-&gt;remove_menu('my-bad-plugin');\n    }\n    add_action( 'baw_before_admin_bar_render', 'remove_my_plugin_in_admin_bar' );<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.6<\/h4>\n\n<ul>\n<li>11 aug 2015<\/li>\n<li>4.3 support<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>20 mar 2014<\/li>\n<li>Security fix: a die() was missing after the wp_redirect()<\/li>\n<li>Fix : Fatal error -&gt; change a do_action + &amp;$var for an apply_filters<\/li>\n<li>WordPress Coding Standard respect<\/li>\n<\/ul>\n\n<h4>1.4.2<\/h4>\n\n<ul>\n<li>23 oct 2012<\/li>\n<li>Security fix: User can not edit posts anymore, thanks to Antoine Peytavin pointing me this<\/li>\n<\/ul>\n\n<h4>1.4.1<\/h4>\n\n<ul>\n<li>17 jul 2012<\/li>\n<li>Bug fix (forgot which one)<\/li>\n<\/ul>\n\n<h4>1.4<\/h4>\n\n<ul>\n<li>11 jul 2012<\/li>\n<li>Add the pluggable function wp_notify_moderator() to add a filter on $email_to, this filter is now used to add all moderators.<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>14 mar 2012<\/li>\n<li>Bug fix when updating a comment with ajax (quick edit) (again) thanks to @lpointet pointing me that<\/li>\n<li>Bug fix when quick-replying a comment with ajax thanks to @lpointet pointing me that too<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>07 mar 2012<\/li>\n<li>Bug fix when updating a comment with ajax (quick edit)<\/li>\n<li>Add a new hook (See FAQ)<\/li>\n<li>Readme improved (so, read him)<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>07 mar 2012<\/li>\n<li>First release<\/li>\n<\/ul>","raw_excerpt":"Add a real Comments Moderator Role to your powerful WordPress Blog!","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/17141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=17141"}],"author":[{"embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/juliobox"}],"wp:attachment":[{"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=17141"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=17141"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=17141"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=17141"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=17141"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/roh.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=17141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}