• Hi I’m having trouble working this out. I’ve set up users who are only allowed to create, but not publish new events. When they click on Submit for Review I was expecting to recieve a notification email prompting me to approve their new event post.

    Is this a feature of the plugin or a WordPress issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jelly_bean

    (@jelly_bean)

    I have a solution:

    add_action( ‘save_post’, ‘my_project_updated_send_email’ );
    function my_project_updated_send_email( $post_id ) {
    `
    if ( !wp_is_post_revision( $post_id ) ) {
    $post_title = get_the_title( $post_id );
    $post_url = get_permalink( $post_id );
    $subject = ‘A post has been updated’;
    $message = “A post has been updated on your website:\n\n”;
    $message .= “<a href='”. $post_url. “‘>” .$post_title. “</a>\n\n”;
    //send email to admin
    wp_mail( ‘[email protected]’, $subject, $message );
    }
    } `

    This sends notifications if any post is updated

    Plugin Author Stephen Harris

    (@stephenharris)

    Hi jelly_bean,

    Sorry you didn’t get a reply, but it looks like you’ve solved your problem.

    The ‘pending review’ status is core WordPress functionality, and it does not trigger any e-mails by default,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notification on Submit for Review’ is closed to new replies.