Skip to content

Instantly share code, notes, and snippets.

@wpmark
Created September 23, 2014 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpmark/292d91a50c6c9bafa009 to your computer and use it in GitHub Desktop.
Save wpmark/292d91a50c6c9bafa009 to your computer and use it in GitHub Desktop.
Registered Post Type Args
object(stdClass)#386 (26) {
["labels"]=>
object(stdClass)#373 (14) {
["name"]=>
string(8) "Whistles"
["singular_name"]=>
string(7) "Whistle"
["add_new"]=>
string(7) "Add New"
["add_new_item"]=>
string(15) "Add New Whistle"
["edit_item"]=>
string(12) "Edit Whistle"
["new_item"]=>
string(11) "New Whistle"
["view_item"]=>
string(12) "View Whistle"
["search_items"]=>
string(15) "Search Whistles"
["not_found"]=>
string(17) "No whistles found"
["not_found_in_trash"]=>
string(26) "No whistles found in trash"
["parent_item_colon"]=>
NULL
["all_items"]=>
string(8) "Whistles"
["menu_name"]=>
string(8) "Whistles"
["name_admin_bar"]=>
string(7) "Whistle"
}
["description"]=>
string(0) ""
["public"]=>
bool(false)
["hierarchical"]=>
bool(false)
["exclude_from_search"]=>
bool(true)
["publicly_queryable"]=>
bool(false)
["show_ui"]=>
bool(true)
["show_in_menu"]=>
bool(false)
["show_in_nav_menus"]=>
bool(false)
["show_in_admin_bar"]=>
bool(true)
["menu_position"]=>
NULL
["menu_icon"]=>
NULL
["capability_type"]=>
string(7) "whistle"
["map_meta_cap"]=>
bool(true)
["register_meta_box_cb"]=>
NULL
["taxonomies"]=>
array(0) {
}
["has_archive"]=>
bool(false)
["rewrite"]=>
bool(false)
["query_var"]=>
string(7) "whistle"
["can_export"]=>
bool(true)
["delete_with_user"]=>
bool(false)
["_builtin"]=>
bool(false)
["_edit_link"]=>
string(16) "post.php?post=%d"
["name"]=>
string(7) "whistle"
["cap"]=>
object(stdClass)#395 (15) {
["edit_post"]=>
string(12) "edit_whistle"
["read_post"]=>
string(12) "read_whistle"
["delete_post"]=>
string(14) "delete_whistle"
["edit_posts"]=>
string(13) "edit_whistles"
["edit_others_posts"]=>
string(15) "manage_whistles"
["publish_posts"]=>
string(15) "manage_whistles"
["read_private_posts"]=>
string(4) "read"
["read"]=>
string(4) "read"
["delete_posts"]=>
string(15) "manage_whistles"
["delete_private_posts"]=>
string(15) "manage_whistles"
["delete_published_posts"]=>
string(15) "manage_whistles"
["delete_others_posts"]=>
string(15) "manage_whistles"
["edit_private_posts"]=>
string(13) "edit_whistles"
["edit_published_posts"]=>
string(13) "edit_whistles"
["create_posts"]=>
string(15) "create_whistles"
}
["label"]=>
string(8) "Whistles"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment