Tips on Customizing Social Sharing Buttons – Social Pug

How to Hide Social Pug Admin Menus

function plt_hide_social_pug_menus() {
	//Hide "Social Pug".
	remove_menu_page('dpsp-social-pug');
	//Hide "Social Pug → Toolkit".
	remove_submenu_page('dpsp-social-pug', 'dpsp-toolkit');
	//Hide "Social Pug → Floating Sidebar".
	remove_submenu_page('dpsp-social-pug', 'dpsp-sidebar');
	//Hide "Social Pug → Inline Content".
	remove_submenu_page('dpsp-social-pug', 'dpsp-content');
	//Hide "Social Pug → Settings".
	remove_submenu_page('dpsp-social-pug', 'dpsp-settings');
	//Hide "Social Pug → 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 ) {
		return;
	}

	//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);