-
Home
-
Dear Flipbook – PDF Flipbook, 3D Flipbook, PDF embed, PDF viewer
- Tips
How to Hide 3D FlipBook : Dflip Lite Admin Menus
function plt_hide_3d_flipbook_dflip_lite_menus() {
//Hide "dFlip Books".
remove_menu_page('edit.php?post_type=dflip');
//Hide "dFlip Books → All Books".
remove_submenu_page('edit.php?post_type=dflip', 'edit.php?post_type=dflip');
//Hide "dFlip Books → Add New Book".
remove_submenu_page('edit.php?post_type=dflip', 'post-new.php?post_type=dflip');
//Hide "dFlip Books → Categories".
remove_submenu_page('edit.php?post_type=dflip', 'edit-tags.php?taxonomy=dflip_category&post_type=dflip');
//Hide "dFlip Books → Global Settings".
remove_submenu_page('edit.php?post_type=dflip', 'dflip-settings');
//Hide "dFlip Books → Upgrade DearFlip".
remove_submenu_page('edit.php?post_type=dflip', 'https://dearflip.com/go/wp-lite-upgrade-menu');
}
add_action('admin_menu', 'plt_hide_3d_flipbook_dflip_lite_menus', 11);
Where do I put this code?
How to Hide 3D FlipBook : Dflip Lite Meta Boxes
function plt_hide_3d_flipbook_dflip_lite_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "More Features in FULL VERSION!" meta box.
remove_meta_box('dflip_post_meta_box_support_us', $screen->id, 'normal');
//Hide the "dFlip Settings" meta box.
remove_meta_box('dflip_post_meta_box', $screen->id, 'normal');
//Hide the "Shortcode" meta box.
remove_meta_box('dflip_post_meta_box_shortcode', $screen->id, 'side');
//Hide the "Useful Links" meta box.
remove_meta_box('dflip_post_meta_box_video', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_3d_flipbook_dflip_lite_metaboxes', 20);