From 78f3d8a6cbad332621546334714c454115a5ee5f Mon Sep 17 00:00:00 2001 From: Akeda Bagus Date: Tue, 29 Sep 2015 09:11:23 +0200 Subject: [PATCH] Fixed permission issue when show_ui arg is set to false for attributes. When show_ui for taxonomies is set to false, the ability to view the term editing screen is removed. See https://core.trac.wordpress.org/ticket/33938 Fixes #9223. --- includes/class-wc-post-types.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/class-wc-post-types.php b/includes/class-wc-post-types.php index 7f12ff590a9..212dde91eda 100644 --- a/includes/class-wc-post-types.php +++ b/includes/class-wc-post-types.php @@ -184,7 +184,10 @@ class WC_Post_types { 'add_new_item' => sprintf( __( 'Add New %s', 'woocommerce' ), $label ), 'new_item_name' => sprintf( __( 'New %s', 'woocommerce' ), $label ) ), - 'show_ui' => false, + 'show_ui' => true, + 'show_in_menu' => false, + 'show_in_nav_menus' => false, + 'meta_box_cb' => false, 'query_var' => 1 === $tax->attribute_public, 'rewrite' => false, 'sort' => false,