Tips on Customizing Html5 Audio Player – Self hosted ogg, mp3 Player

How to Hide Html5 Audio Player Admin Menus

function plt_hide_html5_audio_player_menus() {
	//Hide "Html5 audio player".
	//Hide "Html5 audio player → Html5 audio player".
	remove_submenu_page('edit.php?post_type=audioplayer', 'edit.php?post_type=audioplayer');
	//Hide "Html5 audio player → Add Audio Player".
	remove_submenu_page('edit.php?post_type=audioplayer', 'post-new.php?post_type=audioplayer');
	//Hide "Html5 audio player → Developer".
	remove_submenu_page('edit.php?post_type=audioplayer', 'h5ap-developer');

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

Where do I put this code?

How to Hide Html5 Audio Player Meta Boxes

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

	//Hide the "Support Html5 Audio Player" meta box.
	remove_meta_box('myplugin', $screen->id, 'normal');
	//Hide the "Configure your Audio player" meta box.
	remove_meta_box('_ahp_metabox', $screen->id, 'normal');
	//Hide the "Please show some love" meta box.
	remove_meta_box('myplugin_sectionid', $screen->id, 'side');
	//Hide the "Boost Your Business" meta box.
	remove_meta_box('myplugin_upwork', $screen->id, 'side');
	//Hide the "Get Plugin Customization Service" meta box.
	remove_meta_box('myplugin1', $screen->id, 'side');
	//Hide the "Repeating Field Group" meta box.
	remove_meta_box('_ahffp_metabox', $screen->id, 'normal');

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

How to Hide the "Support html5 Audio Player" Dashboard Widget

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

	//Remove the "Support html5 Audio Player" widget.
	remove_meta_box('example_dashboard_widget', 'dashboard', 'normal');

add_action('wp_dashboard_setup', 'plt_hide_html5_audio_player_dashboard_widgets', 20);