WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

Check this option


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
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

Your Answer


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.