-
Home
-
WooCommerce Product Table Lite
- Tips
function plt_hide_wc_product_table_lite_menus() {
//Hide "Product Tables".
remove_menu_page('edit.php?post_type=wc_product_table');
//Hide "Product Tables → Product Tables".
remove_submenu_page('edit.php?post_type=wc_product_table', 'edit.php?post_type=wc_product_table');
//Hide "Product Tables → Add Post".
remove_submenu_page('edit.php?post_type=wc_product_table', 'post-new.php?post_type=wc_product_table');
//Hide "Product Tables → Add New Table".
remove_submenu_page('edit.php?post_type=wc_product_table', 'wcpt-edit');
//Hide "Product Tables → Settings".
remove_submenu_page('edit.php?post_type=wc_product_table', 'wcpt-settings');
//Hide "Product Tables → Addons".
remove_submenu_page('edit.php?post_type=wc_product_table', 'wcpt-addons');
}
add_action('admin_menu', 'plt_hide_wc_product_table_lite_menus', 11);
Where do I put this code?