-
Home
-
Schedule Post Changes With PublishPress Future: Unpublish, Delete, Change Status, Trash, Change Categories
- Tips
function plt_hide_post_expirator_menus() {
//Hide "Tools → Scheduled Actions".
remove_submenu_page('tools.php', 'action-scheduler');
//Hide "Future".
remove_menu_page('publishpress-future');
//Hide "Future → Action Workflows".
remove_submenu_page('publishpress-future', 'edit.php?post_type=ppfuture_workflow');
//Hide "Future → Action Settings".
remove_submenu_page('publishpress-future', 'publishpress-future');
//Hide "Future → Export / Import".
remove_submenu_page('publishpress-future', 'future-backup');
//Hide "Future → Upgrade to Pro".
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?