Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Talk:Function Reference/register post type

Since "public" seems to show the UI in the admin it's not clear why you would ever want public=true and show_ui=false or public=false and show_ui=true. If that could be clarified it would be really helpful. Mikeschinkel

WARNING: The custom post NAME must be no greater than 20 characters

There seems to be a fixed limit to the size of the name you can use. It is 20 characters.

If you use more than 20 chars, you will see that, on the edit page, you don't get the option to Publish your post only to submit it for review. If you try to submit for review, you get the dreaded: "Are you sure you want to do this?", "Please try again." error page. Knightnet


Would be a good idea I think to put the $args options in alphabetical order. Any objections?

TheMikeD 05:14, 16 December 2013 (UTC)