Tips on Customizing Archive Post Order Plus

How to Hide Archive Post Order Plus Admin Menus

function plt_hide_archive_post_order_plus_menus() {
	//Hide the "APO +" menu.
	remove_menu_page('apop_post_sort');
	//Hide the "APO + → Display number / target setting" menu.
	remove_submenu_page('apop_post_sort', 'apop_post_sort');
	//Hide the "APO + → Sorting" menu.
	remove_submenu_page('apop_post_sort', 'apop_post_sort_setting');
}

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

Where do I put this code?

How to Hide the "APO + custom field settings" Meta Box

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

	//Hide the "APO + custom field settings" meta box.
	remove_meta_box('apo_custom_fields', $screen->id, 'normal');
}

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