Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author TIEro

    (@tiero)

    You’re not missing anything: it moves expired posts to trash, not to another category or status.

    Since TIEexpire is unmaintained now (it’s a part of TIEtools and is maintained there), you can adjust the code yourself to do this, if you wish. Simply open the TIEexpire.php file and replace all the post deletion lines:

    wp_delete_post($postid);

    (there are 6 occurrences) with code to change the post status. Something like this would do it (untested, make sure you check it first):

    $post = array (
        'ID' => $post_id,
        'post_status' => 'draft'
    );
    wp_update_post($post);
    lovelybooks

    (@lovelybooks)

    Hi there, I was wondering if there is a way to change the post category upon expiration by changing that line mentioned above to something else. Please let me know!

    It would replace the category from category 2 to category 3.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Option to Move Expired Posts to Draft Status?’ is closed to new replies.