-
Home
-
Brizy – Page Builder
- Tips
How to Hide Brizy Admin Menus
function plt_hide_brizy_menus() {
//Hide "Brizy".
remove_menu_page('brizy-settings');
//Hide "Brizy → Settings".
remove_submenu_page('brizy-settings', 'brizy-settings');
//Hide "Brizy → Stories".
remove_submenu_page('brizy-settings', 'edit.php?post_type=editor-story');
//Hide "Brizy → Templates".
remove_submenu_page('brizy-settings', 'edit.php?post_type=editor-template');
//Hide "Brizy → Leads".
remove_submenu_page('brizy-settings', 'edit.php?post_type=editor-form-entry');
//Hide "Brizy → Tools".
remove_submenu_page('brizy-settings', 'brizy-tools');
//Hide "Brizy → Starter Templates".
remove_submenu_page('brizy-settings', 'starter-templates');
//Hide "Brizy → Getting Started".
remove_submenu_page('brizy-settings', 'getting-started');
//Hide "Brizy → Go Pro".
remove_submenu_page('brizy-settings', 'https://www.brizy.io/pricing/?utm_source=wp-menu&utm_campaign=gopro&utm_medium=wp-dash/');
}
add_action('admin_menu', 'plt_hide_brizy_menus', 21);
Where do I put this code?
How to Hide Brizy Meta Boxes
function plt_hide_brizy_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Post Attributes" meta box.
remove_meta_box('pageparentdiv', $screen->id, 'side');
//Hide the "Display Conditions" meta box.
remove_meta_box('template-rules', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_brizy_metaboxes', 20);
How to Hide the "Brizy Overview" Dashboard Widget
function plt_hide_brizy_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "Brizy Overview" widget.
remove_meta_box('brizy_dashboard', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_brizy_dashboard_widgets', 20);