WordPress.org

Ready to get started?Download WordPress

Forums

Post Expirator
[resolved] Defualt expiration duration (3 posts)

  1. stl99
    Member
    Posted 2 years ago #

    Hi,

    Would it be possible to give new articles a default post duration like 90 days instead of selecting the expiration date?

    Also I'd like to set the article to pending review status instead of draft status.

    Many thanks in advance for any help!

    Cheers,
    Thomas

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

  2. Aaron Axelsen
    Member
    Plugin Author

    Posted 2 years ago #

    The plugin does not have a way to do this currently. I have thought about looking at adding a default expiration option to future versions.

    To change the post to pending review, edit the "expirationdate_delete_expired_posts" function and change

    wp_update_post(array('ID' => $a->post_id, 'post_status' => 'draft'));

    to be

    wp_update_post(array('ID' => $a->post_id, 'post_status' => 'pending'));

    That should do the trick for that!

  3. stl99
    Member
    Posted 2 years ago #

    Thanks Aaron!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic