-
Home
-
WP Athletics
- Tips
function plt_hide_wp_athletics_menus() {
//Hide "WP Athletics".
remove_menu_page('wp-athletics-settings');
//Hide "WP Athletics → WP Athletics".
remove_submenu_page('wp-athletics-settings', 'wp-athletics-settings');
//Hide "WP Athletics → Add Results".
remove_submenu_page('wp-athletics-settings', 'wp-athletics-add-results');
//Hide "WP Athletics → Manage Results".
remove_submenu_page('wp-athletics-settings', 'wp-athletics-manage-results');
//Hide "WP Athletics → Manage Events".
remove_submenu_page('wp-athletics-settings', 'wp-athletics-manage-events');
//Hide "WP Athletics → Manage Athletes".
remove_submenu_page('wp-athletics-settings', 'wp-athletics-manage-athletes');
//Hide "WP Athletics → Event Categories".
remove_submenu_page('wp-athletics-settings', 'wp-athletics-event-categories');
//Hide "WP Athletics → Age Categories".
remove_submenu_page('wp-athletics-settings', 'wp-athletics-age-categories');
//Hide "WP Athletics → Print Rankings".
remove_submenu_page('wp-athletics-settings', 'wp-athletics-print-rankings');
//Hide "WP Athletics → Shortcode Generator".
remove_submenu_page('wp-athletics-settings', 'wp-athletics-shortcode-generator');
//Hide "WP Athletics → Log".
remove_submenu_page('wp-athletics-settings', 'wp-athletics-log');
}
add_action('admin_menu', 'plt_hide_wp_athletics_menus', 11);
Where do I put this code?