-
Home
-
WP Stripe Checkout
- Tips
function plt_hide_wp_stripe_checkout_menus() {
//Hide "Stripe Checkout".
remove_menu_page('edit.php?post_type=wpstripeco_order');
//Hide "Stripe Checkout → All Orders".
remove_submenu_page('edit.php?post_type=wpstripeco_order', 'edit.php?post_type=wpstripeco_order');
//Hide "Stripe Checkout → All Products (Deprecated)".
remove_submenu_page('edit.php?post_type=wpstripeco_order', 'edit.php?post_type=wpstripeco_product');
//Hide "Stripe Checkout → Settings".
remove_submenu_page('edit.php?post_type=wpstripeco_order', 'wp-stripe-checkout-settings');
//Hide "Stripe Checkout → Debug".
remove_submenu_page('edit.php?post_type=wpstripeco_order', 'wp-stripe-checkout-debug');
//Hide "Stripe Checkout → Add-ons".
remove_submenu_page('edit.php?post_type=wpstripeco_order', 'wp-stripe-checkout-addons');
}
add_action('admin_menu', 'plt_hide_wp_stripe_checkout_menus', 11);
Where do I put this code?