Merge pull request #12071 from woocommerce/show-in-rest

Get media working when assign to product
This commit is contained in:
Claudio Sanches 2016-10-12 11:23:03 -03:00 committed by GitHub
commit 62aec00a59
1 changed files with 1 additions and 0 deletions

View File

@ -275,6 +275,7 @@ class WC_Post_types {
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'custom-fields', 'page-attributes', 'publicize', 'wpcom-markdown' ),
'has_archive' => ( $shop_page_id = wc_get_page_id( 'shop' ) ) && get_post( $shop_page_id ) ? get_page_uri( $shop_page_id ) : 'shop',
'show_in_nav_menus' => true,
'show_in_rest' => true,
)
)
);