Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include 'supports' field when fetching a single post type #233

Merged
merged 1 commit into from Feb 12, 2019

Conversation

@danielbachhuber
Copy link
Member

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

@danielbachhuber danielbachhuber added this to the 2.0.3 milestone Feb 5, 2019

@danielbachhuber danielbachhuber requested a review from wp-cli/committers Feb 5, 2019

@schlessera schlessera merged commit 5517499 into master Feb 12, 2019

2 checks passed

DEP All dependencies are resolved
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@delete-merged-branch delete-merged-branch bot deleted the 232-supports-get-post-type branch Feb 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.