Deactivate post after certain date

, ,

Here is a little function that upon loading of site checks to see if the date is past the set date for that post id.  If so then it sets that post to draft mode and removes the post from the live site.

 

Skills

Posted on

August 15, 2017

Submit a Comment

Your email address will not be published. Required fields are marked *