-
Home
-
WP OpenAPI
- Tips
function plt_hide_wp_openapi_menus() {
remove_submenu_page('options-general.php', 'wp-openapi-settings');
remove_menu_page('wp-openapi');
remove_submenu_page('wp-openapi', 'wp-openapi');
remove_submenu_page('wp-openapi', 'wp-openapi/oembed/1.0');
remove_submenu_page('wp-openapi', 'wp-openapi/wp/v2');
remove_submenu_page('wp-openapi', 'wp-openapi/wp-site-health/v1');
remove_submenu_page('wp-openapi', 'wp-openapi/wp-block-editor/v1');
}
add_action('admin_menu', 'plt_hide_wp_openapi_menus', 11);
Where do I put this code?