Tips on Customizing Author Bio On Hover – Author Box

How to Hide Author on Hover Admin Menus

function plt_hide_author_on_hover_menus() {
	//Hide "Author On Hover".
	remove_menu_page('edit.php?post_type=aoh_opt_page');
	//Hide "Author On Hover → All Profiles".
	remove_submenu_page('edit.php?post_type=aoh_opt_page', 'edit.php?post_type=aoh_opt_page');
	//Hide "Author On Hover → Add New Profile".
	remove_submenu_page('edit.php?post_type=aoh_opt_page', 'post-new.php?post_type=aoh_opt_page');
	//Hide "Author On Hover → Settings".
	remove_submenu_page('edit.php?post_type=aoh_opt_page', 'aoh-settings');
	//Hide "Author On Hover → Helper".
	remove_submenu_page('edit.php?post_type=aoh_opt_page', 'aoh_help');
	//Hide "Author On Hover → Go Pro".
	remove_submenu_page('edit.php?post_type=aoh_opt_page', 'https://pluginic.com/plugins/author-on-hover/?ref=100');
}

add_action('admin_menu', 'plt_hide_author_on_hover_menus', 16);

Where do I put this code?

How to Hide Author on Hover Meta Boxes

function plt_hide_author_on_hover_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "Author Manager" meta box.
	remove_meta_box('aoh_post_options', $screen->id, 'side');
	//Hide the "Author Profile Card" meta box.
	remove_meta_box('_aoh_profile_card_options', $screen->id, 'advanced');
}

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