How to change the post date and time with function in WordPress?

Posted by Editorial Staff | Updated on

Want to change the post date and time with function in WordPress? You can do this by calling wp_update_post() function with a special value for 'post_date' and 'post_date_gmt':


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers