Remove "Right Now in Forums" widget form dashboard programatically
-
Hi
I am trying to remove the “Right Now in Forums” with a function but i donĀ“t know hoe to target it. Someone how knows?
Code below:
function disable_default_dashboard_widgets() { // Right Now Widget remove_meta_box('dashboard_right_now', 'dashboard', 'core'); // Comments Widget remove_meta_box('dashboard_recent_comments', 'dashboard', 'core'); // Incoming Links Widget remove_meta_box('dashboard_incoming_links', 'dashboard', 'core'); // Plugins Widget remove_meta_box('dashboard_plugins', 'dashboard', 'core'); // Quick Press Widget remove_meta_box('dashboard_quick_press', 'dashboard', 'core'); // Recent Drafts Widget remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core'); // WordPress Blog Feed remove_meta_box('dashboard_primary', 'dashboard', 'side'); // Other WordPress News remove_meta_box('dashboard_secondary', 'dashboard', 'side'); // bbPress widget 'Right Now in Forums'bbp-dashboard-right-now // *******Does not work right now *******// remove_meta_box('bbp_dashboard_right_now', 'dashboard', 'core');} if (!current_user_can('manage_options')) { add_action('wp_dashboard_setup', 'disable_default_dashboard_widgets'); }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.