WordPress.org

Ready to get started?Download WordPress

Forums

Post Expirator
Expiration Email Notification (6 posts)

  1. cedriclatouffe
    Member
    Posted 5 months ago #

    Hello,
    Can I receive a notification by mail a post will end?

    thank you

    http://wordpress.org/plugins/post-expirator/

  2. Roy Tanck
    Member
    Posted 5 months ago #

    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.

  3. Sultan
    Member
    Posted 4 months ago #

    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?

  4. cedriclatouffe
    Member
    Posted 4 months ago #

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

  5. cedriclatouffe
    Member
    Posted 4 months ago #

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

  6. Roy Tanck
    Member
    Posted 4 months ago #

    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?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.