Remove Dasboard Widget
-
Is there a way to remove the Acunetix WP Security dashboard widget with a PHP function? I’ve tried the following code, but it doesn’t remove the widget. It does work for the “Latest Comments” WP widget.
function remove_dashboard_widgets() { global $wp_meta_boxes; // Latest Comments unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); // Acunetix WP Security Plugin unset($wp_meta_boxes['dashboard']['normal']['core']['acx_plugin_dashboard_widget']); } add_action('wp_dashboard_setup', 'remove_dashboard_widgets');
- The topic ‘Remove Dasboard Widget’ is closed to new replies.