Notice: Trying to get property of non-object in /home/wpcmsnin/ on line 25

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.



Posted on

August 15, 2017

Submit a Comment

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