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.


Submit a Comment

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