-
Home
-
3D FlipBook – PDF Embedder, PDF Flipbook Viewer, Flipbook Image Gallery
- Tips
How to Hide 3D FlipBook - Lite Edition Admin Menus
function plt_hide_interactive_3d_flipbook_powered_physics_engine_menus() {
//Hide "3D FlipBook".
remove_menu_page('edit.php?post_type=3d-flip-book');
//Hide "3D FlipBook → All Books".
remove_submenu_page('edit.php?post_type=3d-flip-book', 'edit.php?post_type=3d-flip-book');
//Hide "3D FlipBook → Add New Book".
remove_submenu_page('edit.php?post_type=3d-flip-book', 'post-new.php?post_type=3d-flip-book');
//Hide "3D FlipBook → Categories".
remove_submenu_page('edit.php?post_type=3d-flip-book', 'edit-tags.php?taxonomy=3d-flip-book-category&post_type=3d-flip-book');
//Hide "3D FlipBook → Shortcode Generator".
remove_submenu_page('edit.php?post_type=3d-flip-book', '3d-flip-book-shortcode-generator');
}
add_action('admin_menu', 'plt_hide_interactive_3d_flipbook_powered_physics_engine_menus', 11);
Where do I put this code?
How to Hide 3D FlipBook - Lite Edition Meta Boxes
function plt_hide_interactive_3d_flipbook_powered_physics_engine_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Details" meta box.
remove_meta_box('3d-flip-book-details', $screen->id, 'normal');
//Hide the "Help" meta box.
remove_meta_box('3d-flip-book-manual', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_interactive_3d_flipbook_powered_physics_engine_metaboxes', 20);