Remove the WP fail2ban admin dashboard widget

Remove the WP fail2ban admin dashboard widget on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_action( 'wp_dashboard_setup', 'wp_fail2ban_remove_dashboard_widget' );

function wp_fail2ban_remove_dashboard_widget() {
	
	remove_meta_box('wp_fail2ban_last_messages','dashboard', 'normal');
}
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.