From 7ab8c1e35f5e76d0d679f18003784eaedc08293d Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 12 Oct 2016 13:02:07 +0100 Subject: [PATCH] Get media working when assign to product Fixes #11760 --- includes/class-wc-post-types.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/class-wc-post-types.php b/includes/class-wc-post-types.php index 5f366836e03..54977d0899a 100644 --- a/includes/class-wc-post-types.php +++ b/includes/class-wc-post-types.php @@ -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, ) ) );