-
Home
-
Bot for Telegram on WooCommerce
- Tips
How to Hide the "Telegram Bot Settings" Admin Menu
function plt_hide_bot_for_telegram_on_woocommerce_menus() {
//Hide the "Telegram Bot Settings" menu.
remove_menu_page('bftow_settings');
}
add_action('admin_menu', 'plt_hide_bot_for_telegram_on_woocommerce_menus', 1001);
Where do I put this code?
How to Hide the "Telegram product settings" Meta Box
function plt_hide_bot_for_telegram_on_woocommerce_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Telegram product settings" meta box.
remove_meta_box('bftow_product_metabox', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_bot_for_telegram_on_woocommerce_metaboxes', 20);