Tips on Customizing WordPress Share Buttons Plugin – AddThis

How to Hide Share Buttons by AddThis Admin Menus

function plt_hide_addthis_menus() {
	//Hide "AddThis".
	//Hide "AddThis → Home".
	remove_submenu_page('addthis_registration', 'addthis_registration');
	//Hide "AddThis → Advanced Settings".
	remove_submenu_page('addthis_registration', 'addthis_advanced_settings');
	//Hide "AddThis → Share Buttons".
	remove_submenu_page('addthis_registration', 'addthis_sharing_buttons');

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

Where do I put this code?

How to Hide the "AddThis Tools" Meta Box

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

	//Hide the "AddThis Tools" meta box.
	remove_meta_box('at_widget', $screen->id, 'advanced');

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