Support » Plugin: Archived Post Status » post hidden after deactivation

  • L D


    Hello, I encountered a strange behaviour:

    1. Archive any post.
    2. Deactivate plugin.
    3. Go to “All Posts” to view all the posts. The archived posts will be hidden completely with no option to “un-archive” them automatically.
    4. Uninstall the plugin.
    5. Your archived post is unretrievable.
    6. Re-install and activate. All is well again.

    Was wondering if an update could be made to change the “archive” status of all archived posts to “draft”? At least that way, the post won’t be displayed but we’ll still be able to retrieve it even though it is in “draft”. But then I’m thinking, what if like the scenario above, the individual re-installs the plugin? It won’t be easy to change all the “draft” statuses back to “archive”.

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


    Thanks for the report. The plugin does not filter post statuses, rather, it allows a new “Archived” status to be assigned directly to posts. So in the case of plugin deactivation no posts will be modified.

    I will have to think through this one a bit. Adding a deactivation hook to update Archived posts is the obvious answer, but I’m not sure how well this will scale if you have thousands of them.

    L D


    Hi Frankie, I just had a thought today. What if on deactivation, the user is informed that their archived posts will be hidden but nothing is changed. It could be that the user is deactivating plugins to figure out a problem. But on uninstall, you pull the number of archived posts. If it’s over a certain threshold (let’s say 100), then a message is given to the user to manually change the archived posts to something else. Or, the other option they get is to have it done automatically (with a warning that it will take a long time). If it’s less than or equal to 100 posts, then the plugin automatically switches everything to draft. Maybe that will help address the scenario of thousands of archived posts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘post hidden after deactivation’ is closed to new replies.