Tips on Customizing PublishPress Future: Automatically Unpublish WordPress Posts

How to Hide PublishPress Future Admin Menus

function plt_hide_post_expirator_menus() {
	//Hide the "Future" menu.
	//Hide the "Future → Future" menu.
	remove_submenu_page('publishpress-future', 'publishpress-future');
	//Hide the "Future → Upgrade to Pro" menu.
	remove_submenu_page('publishpress-future', 'publishpress-future-menu-upgrade-link');

add_action('admin_menu', 'plt_hide_post_expirator_menus', 21);

Where do I put this code?

How to Hide the "PublishPress Future" Meta Box

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

	//Hide the "PublishPress Future" meta box.
	remove_meta_box('expirationdatediv', $screen->id, 'side');

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