Posted By

manavecplan on 03/28/10


Tagged


Versions (?)

Specify the user level needed to skip comment moderation in WordPress


 / Published in: PHP
 

URL: http://www.dagondesign.com/articles/specify-the-user-level-needed-to-skip-comment-moderation-in-wordpress/#more-96

  1. if ( isset($userdata) && ( $user_id == $post_author || $user->has_cap('moderate_comments') ) ) {
  2. // The author and the admins get respect.
  3. $approved = 1;

Report this snippet  

You need to login to post a comment.