-
Home
-
Themeflection Numbers – Number Counter and Animated Numbers
- Tips
How to Hide the "Themeflection" Admin Menu
function plt_hide_tf_numbers_number_counter_animaton_menus() {
//Hide the "Themeflection" menu.
remove_menu_page('edit.php?post_type=tf_stats');
}
add_action('admin_menu', 'plt_hide_tf_numbers_number_counter_animaton_menus', 11);
Where do I put this code?
How to Hide Themeflection Meta Boxes
function plt_hide_tf_numbers_number_counter_animaton_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Save/Update Numbers" meta box.
remove_meta_box('submitdiv', $screen->id, 'side');
//Hide the "Info" meta box.
remove_meta_box('tf_ad', $screen->id, 'side');
//Hide the "More Options" meta box.
remove_meta_box('_tf_side', $screen->id, 'side');
//Hide the "Themeflection" meta box.
remove_meta_box('_tf_stats_box', $screen->id, 'normal');
//Hide the "General Options" meta box.
remove_meta_box('_tf_stats_bg', $screen->id, 'normal');
//Hide the "Numbers Style" meta box.
remove_meta_box('_tf_stats_stle', $screen->id, 'normal');
//Hide the "Addon Options" meta box.
remove_meta_box('_tf_addons', $screen->id, 'normal');
}
add_action('add_meta_boxes', 'plt_hide_tf_numbers_number_counter_animaton_metaboxes', 20);