Tips on Customizing Page Builder by SiteOrigin

How to Hide the "Page Builder" Admin Menu

function plt_hide_siteorigin_panels_menus() {
	//Hide the "Settings → Page Builder" menu.
	remove_submenu_page('options-general.php', 'siteorigin_panels');
}

add_action('admin_menu', 'plt_hide_siteorigin_panels_menus', 12);

Where do I put this code?

How to Hide the "Page Builder" Meta Box

function plt_hide_siteorigin_panels_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "Page Builder" meta box.
	remove_meta_box('so-panels-panels', $screen->id, 'advanced');
}

add_action('add_meta_boxes', 'plt_hide_siteorigin_panels_metaboxes', 20);

How to Hide the "SiteOrigin Page Builder News" Dashboard Widget

function plt_hide_siteorigin_panels_dashboard_widgets() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Remove the "SiteOrigin Page Builder News" widget.
	remove_meta_box('so-dashboard-news', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_siteorigin_panels_dashboard_widgets', 20);