The MU forums have moved to WordPress.org

Author posts and editor or admin Reviews it. (3 posts)

  1. bonechair
    Member
    Posted 14 years ago #

    Hi I am working on a plugin and I need some help with the code.

    I want an editor to post and then be automatically set the post to pending and then admin gets mailed and admin and can review the post.

    Please help me with advice on coding. Rough idea below but I need to rewrite.

    function pending_notify() {
       if($current_user=='Author'){
         $post=pending;
         @wp_mail($admin_email, $subject, $notify_message);
       }
    
    }
    
    add_action('save_post','pending_notify');

    Can you help please?

  2. andrea_r
    Moderator
    Posted 14 years ago #

    there are a few plugins alreayd available to do this:
    http://wordpress.org/extend/plugins/search.php?q=approve+posts&sort=

  3. bonechair
    Member
    Posted 14 years ago #

    Thanks I looked at some of the plugins but I want to create one myself.

About this Topic

  • Started 14 years ago by bonechair
  • Latest reply from bonechair