-
Home
-
Google Calendar WooCommerce Bookings Two Way Sync
- Tips
function plt_hide_google_calendar_woocommerce_bookings_two_way_sync_menus() {
//Hide "Ninja Bookings".
remove_menu_page('google-calendar-woocommerce-bookings-two-way-sync/ninja-google-calendar-woocommerce-bookings-two-way-sync.php');
//Hide "Ninja Bookings → Ninja Bookings".
remove_submenu_page('google-calendar-woocommerce-bookings-two-way-sync/ninja-google-calendar-woocommerce-bookings-two-way-sync.php', 'google-calendar-woocommerce-bookings-two-way-sync/ninja-google-calendar-woocommerce-bookings-two-way-sync.php');
//Hide "Ninja Bookings → Google >> Woo".
remove_submenu_page('google-calendar-woocommerce-bookings-two-way-sync/ninja-google-calendar-woocommerce-bookings-two-way-sync.php', 'dashicons-external');
//Hide "Ninja Bookings → Authorize".
remove_submenu_page('google-calendar-woocommerce-bookings-two-way-sync/ninja-google-calendar-woocommerce-bookings-two-way-sync.php', 'google-woo-page');
}
add_action('admin_menu', 'plt_hide_google_calendar_woocommerce_bookings_two_way_sync_menus', 11);
Where do I put this code?