Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have comments enabled on my custom post type page, which works well but I need the admin to moderate all comments before they are published.

At the moment the post author whose level is 'contributor' is able to post comments without being moderated.

I can't find any way to do this currently, nor can I find any plugins.

Any help would be much appreciated!

share|improve this question

2 Answers 2

Check this option

http://wordpress.org/support/topic/comment-moderation-issue-need-help

The relevant code from that thread is:

add_filter('pre_comment_approved', 'xko_pre_comment_approved', null, 2);

function xko_pre_comment_approved($approved, $commentdata)
{
    $approved = 0;
    return $approved;
}
share|improve this answer
1  
Welcome to WordPress Answers! An answer should be more than just a link to an external site. Please add a solution. –  toscho Sep 8 '12 at 9:07

Try this: Capability Manager http://wordpress.org/extend/plugins/capsman/ and also read (if you have't already done so) the Wordpress roles and capabilities docs: http://codex.wordpress.org/Roles_and_Capabilities

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.