Tips on Customizing Scriptless Social Sharing

How to Hide the "Scriptless Social Sharing" Admin Menu

function plt_hide_scriptless_social_sharing_menus() {
	//Hide the "Settings → Scriptless Social Sharing" menu.
	remove_submenu_page('options-general.php', 'scriptlesssocialsharing');

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

Where do I put this code?

How to Hide the "Scriptless Social Sharing" Meta Box

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

	//Hide the "Scriptless Social Sharing" meta box.
	remove_meta_box('scriptless_social_sharing', $screen->id, 'side');

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