-
Home
-
Ecwid by Lightspeed Ecommerce Shopping Cart
- Tips
How to Hide Ecwid by Lightspeed Ecommerce Shopping Cart Admin Menus
function plt_hide_ecwid_shopping_cart_menus() {
//Hide "Ecwid".
remove_menu_page('ec-store');
//Hide "Ecwid → Setup".
remove_submenu_page('ec-store', 'ec-store');
//Hide "Ecwid → Storefront".
remove_submenu_page('ec-store', 'ec-storefront-settings');
//Hide "Ecwid → Developers".
remove_submenu_page('ec-store', 'ec-store-developers');
//Hide "Ecwid → Help".
remove_submenu_page('ec-store', 'ec-store-help');
}
add_action('admin_menu', 'plt_hide_ecwid_shopping_cart_menus', 11);
Where do I put this code?
How to Hide the "Store" Meta Box
function plt_hide_ecwid_shopping_cart_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Store" meta box.
remove_meta_box('ecwid_nav_links', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_ecwid_shopping_cart_metaboxes', 20);
How to Hide the "Ecwid Blog" Dashboard Widget
function plt_hide_ecwid_shopping_cart_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Ecwid Blog" widget.
remove_meta_box('ecwid_blog_feed', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_ecwid_shopping_cart_dashboard_widgets', 20);