How to use register_post_type() to modify an existing post type?

Posted by Editorial Staff | Updated on

You need to use get_post_type_object to get the post type object, modify what you want in it, then re-register it using your modified type as the new $args parameter. Use the following code at the end of your functions.php file.


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