-
Home
-
WP Table Builder – WordPress Table Plugin
- Tips
How to Hide WP Table Builder Admin Menus
function plt_hide_wp_table_builder_menus() {
//Hide "WP Table Builder".
remove_menu_page('wptb-overview');
//Hide "WP Table Builder → All Tables".
remove_submenu_page('wptb-overview', 'wptb-overview');
//Hide "WP Table Builder → Add New".
remove_submenu_page('wptb-overview', 'wptb-builder');
//Hide "WP Table Builder → Import/Export".
remove_submenu_page('wptb-overview', 'wptb-import');
//Hide "WP Table Builder → Table Tags".
remove_submenu_page('wptb-overview', 'wptb_table_tags');
//Hide "WP Table Builder → Settings".
remove_submenu_page('wptb-overview', 'wp-table-builder-settings');
//Hide "WP Table Builder → Add-Ons".
remove_submenu_page('wptb-overview', 'wptb-overview-addons');
}
add_action('admin_menu', 'plt_hide_wp_table_builder_menus', 1000000000);
Where do I put this code?
How to Hide the "Table Tags" Meta Box
function plt_hide_wp_table_builder_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Table Tags" meta box.
remove_meta_box('tagsdiv-table_tags', $screen->id, 'side');
}
add_action('add_meta_boxes', 'plt_hide_wp_table_builder_metaboxes', 20);