Support » Plugin: Post Expirator » Expiration Email Notification

Viewing 5 replies - 1 through 5 (of 5 total)
  • You could do something like:

    function post_expire_notification( $id ){
    	wp_mail( get_option('admin_email'), 'Post ' . $id . ' expired', 'Foo!' );
    }
    
    add_action( 'postExpiratorExpire', 'post_expire_notification' );

    This would send the email at the exact time the post expires.

    Sultan

    (@sultan_semmaiyahoocom)

    function post_expire_notification( $id ){
    wp_mail( get_option(‘$user_email’), ‘Post ‘ . $id . ‘ expired’, ‘Foo!’ );
    }

    add_action( ‘postExpiratorExpire’, ‘post_expire_notification’ );

    is this will work for all user?

    Hello,
    I tested it did not work with me.
    I always look for a solution. it works with you?

    Hi,
    I tested your version, but it does not work for me!
    but thank you

    The code above is slightly modified from something I’m currently using and which works for me. I assume you have email set up on your server, so wp_mail works?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Expiration Email Notification’ is closed to new replies.