Tips on Customizing Grow by Mediavine

How to Hide Grow by Mediavine Admin Menus

function plt_hide_social_pug_menus() {
	//Hide "Grow".
	//Hide "Grow → Toolkit".
	remove_submenu_page('dpsp-social-pug', 'dpsp-toolkit');
	//Hide "Grow → Floating Sidebar".
	remove_submenu_page('dpsp-social-pug', 'dpsp-sidebar');
	//Hide "Grow → Inline Content".
	remove_submenu_page('dpsp-social-pug', 'dpsp-content');
	//Hide "Grow → Settings".
	remove_submenu_page('dpsp-social-pug', 'dpsp-settings');
	//Hide "Grow → Extensions".
	remove_submenu_page('dpsp-social-pug', 'dpsp-extensions');

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

Where do I put this code?

How to Hide the "Share Statistics" Meta Box

function plt_hide_social_pug_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {

	//Hide the "Share Statistics" meta box.
	remove_meta_box('dpsp_share_statistics', $screen->id, 'normal');

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