Skip to content

Conversation

danielbachhuber
Copy link
Member

@danielbachhuber danielbachhuber commented Feb 5, 2019

Renders out like this:

$ wp post-type get post
+-----------------+---------------------------------------------------------------------------------------------------------------------------+
| Field           | Value                                                                                                                     |
+-----------------+---------------------------------------------------------------------------------------------------------------------------+
| name            | post                                                                                                                      |
| label           | Posts                                                                                                                     |
| description     |                                                                                                                           |
| hierarchical    | false                                                                                                                     |
| public          | true                                                                                                                      |
| capability_type | post                                                                                                                      |
| labels          | {"name":"Posts","singular_name":"Post","add_new":"Add New","add_new_item":"Add New Post","edit_item":"Edit Post","new_ite |
|                 | m":"New Post","view_item":"View Post","view_items":"View Posts","search_items":"Search Posts","not_found":"No posts found |
|                 | .","not_found_in_trash":"No posts found in Trash.","parent_item_colon":null,"all_items":"All Posts","archives":"Post Arch |
|                 | ives","attributes":"Post Attributes","insert_into_item":"Insert into post","uploaded_to_this_item":"Uploaded to this post |
|                 | ","featured_image":"Featured Image","set_featured_image":"Set featured image","remove_featured_image":"Remove featured im |
|                 | age","use_featured_image":"Use as featured image","filter_items_list":"Filter posts list","items_list_navigation":"Posts  |
|                 | list navigation","items_list":"Posts list","item_published":"Post published.","item_published_privately":"Post published  |
|                 | privately.","item_reverted_to_draft":"Post reverted to draft.","item_scheduled":"Post scheduled.","item_updated":"Post up |
|                 | dated.","menu_name":"Posts","name_admin_bar":"Post"}                                                                      |
| cap             | {"edit_post":"edit_post","read_post":"read_post","delete_post":"delete_post","edit_posts":"edit_posts","edit_others_posts |
|                 | ":"edit_others_posts","publish_posts":"publish_posts","read_private_posts":"read_private_posts","read":"read","delete_pos |
|                 | ts":"delete_posts","delete_private_posts":"delete_private_posts","delete_published_posts":"delete_published_posts","delet |
|                 | e_others_posts":"delete_others_posts","edit_private_posts":"edit_private_posts","edit_published_posts":"edit_published_po |
|                 | sts","create_posts":"edit_posts"}                                                                                         |
| supports        | {"title":true,"editor":true,"author":true,"thumbnail":true,"excerpt":true,"trackbacks":true,"custom-fields":true,"comment |
|                 | s":true,"revisions":true,"post-formats":true}                                                                             |
+-----------------+---------------------------------------------------------------------------------------------------------------------------+

Fixes #232

@schlessera schlessera merged commit 5517499 into master Feb 12, 2019
@delete-merged-branch delete-merged-branch bot deleted the 232-supports-get-post-type branch February 12, 2019 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants