-
Home
-
AI Infographic Maker
- Tips
How to Hide Infographic Maker iList Admin Menus
function plt_hide_infographic_and_list_builder_ilist_menus() {
//Hide "iList".
remove_menu_page('edit.php?post_type=ilist');
//Hide "iList → Manage iList Items".
remove_submenu_page('edit.php?post_type=ilist', 'edit.php?post_type=ilist');
//Hide "iList → Add New iList".
remove_submenu_page('edit.php?post_type=ilist', 'post-new.php?post_type=ilist');
//Hide "iList → Settings".
remove_submenu_page('edit.php?post_type=ilist', 'ilist_settings');
//Hide "iList → Support".
remove_submenu_page('edit.php?post_type=ilist', 'qcopd_ilist_supports');
//Hide "iList → Help".
remove_submenu_page('edit.php?post_type=ilist', 'http://127.0.0.1/wp-admin/edit.php?post_type=ilist&page=ilist_settings#help');
//Hide "iList → Upgrade To Pro".
remove_submenu_page('edit.php?post_type=ilist', 'https://www.quantumcloud.com/products/infographic-maker-ilist/');
}
add_action('admin_menu', 'plt_hide_infographic_and_list_builder_ilist_menus', 21);
Where do I put this code?
How to Hide Infographic Maker iList Meta Boxes
function plt_hide_infographic_and_list_builder_ilist_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Preview Box" meta box.
remove_meta_box('qcilist-meta-box', $screen->id, 'side');
//Hide the "Shortcode" meta box.
remove_meta_box('qcilist-shortcode-meta-box', $screen->id, 'side');
//Hide the "Note Box" meta box.
remove_meta_box('qcilist-noted-meta-box', $screen->id, 'side');
//Hide the "Shortcode Settings" meta box.
remove_meta_box('ilist_shortcode_conf', $screen->id, 'normal');
//Hide the "List Elements" meta box.
remove_meta_box('_sl_metabox', $screen->id, 'normal');
//Hide the "Shortcode Generator for iList" meta box.
remove_meta_box('qc-sld-meta-box-id', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_infographic_and_list_builder_ilist_metaboxes', 20);