-
Home
-
WooCommerce Checkout & Funnel Builder by CartFlows – Create High Converting Stores For WooCommerce
- Tips
How to Hide CartFlows Admin Menus
function plt_hide_cartflows_menus() {
//Hide "Tools → Scheduled Actions".
remove_submenu_page('tools.php', 'action-scheduler');
//Hide "CartFlows".
remove_menu_page('cartflows');
//Hide "CartFlows → Dashboard".
remove_submenu_page('cartflows', 'cartflows');
//Hide "CartFlows → Funnels".
remove_submenu_page('cartflows', 'admin.php?page=cartflows&path=flows');
//Hide "CartFlows → Store Checkout".
remove_submenu_page('cartflows', 'admin.php?page=cartflows&path=store-checkout');
//Hide "CartFlows → Add-ons".
remove_submenu_page('cartflows', 'admin.php?page=cartflows&path=addons');
}
add_action('admin_menu', 'plt_hide_cartflows_menus', 11);
Where do I put this code?
How to Hide CartFlows Meta Boxes
function plt_hide_cartflows_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Slug" meta box.
remove_meta_box('slugdiv', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_cartflows_metaboxes', 20);