Tips on Customizing Social Media Share Buttons | MashShare

How to Hide Mashshare Share Buttons Admin Menus

function plt_hide_mashsharer_menus() {
	//Hide "MashShare".
	//Hide "MashShare → Settings".
	remove_submenu_page('mashsb-settings', 'mashsb-settings');
	//Hide "MashShare → Install Add-Ons".
	remove_submenu_page('mashsb-settings', 'mashsb-addons');
	//Hide "MashShare → Im/Export & System".
	remove_submenu_page('mashsb-settings', 'mashsb-tools');

add_action('admin_menu', 'plt_hide_mashsharer_menus', 11);

Where do I put this code?

How to Hide the "MashShare Social Sharing Options" Meta Box

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

	//Hide the "MashShare Social Sharing Options" meta box.
	remove_meta_box('mashsb_meta', $screen->id, 'normal');

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