Tips on Customizing Brizy – Page Builder

How to Hide Brizy Admin Menus

function plt_hide_brizy_menus() {
	//Hide "Brizy".
	remove_menu_page('brizy-settings');
	//Hide "Brizy → Role Manager".
	remove_submenu_page('brizy-settings', 'brizy-settings');
	//Hide "Brizy → Templates".
	remove_submenu_page('brizy-settings', 'edit.php?post_type=brizy_template');
	//Hide "Brizy → Leads".
	remove_submenu_page('brizy-settings', 'edit.php?post_type=brizy-form-entry');
	//Hide "Brizy → Optimize Images".
	remove_submenu_page('brizy-settings', 'brizy-optimize-images');
	//Hide "Brizy → Go Pro".
	remove_submenu_page('brizy-settings', 'https://www.brizy.io/brizy-pro-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);