How do I save metadata for a specific custom post type only?

Posted by Prem Tiwari | Updated on

That should work. Just replace your_post_type with the name of the post type. Also, little known fact: the save_post hook passes the post’s ID as an argument.


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