Hide Brute-force protection and Anti-Spam stats to anyone but admins in Jetpack

Hide Brute-force protection and Anti-Spam stats to anyone but admins in Jetpack on your child site.

Snippet Type

Execute on Child Sites

Snippet

function jetpackcom_rm_jp_dashboard_stats_admins() {
	if ( ! current_user_can( 'manage_options' ) ) {
		wp_die();
	}
}
add_action( 'jetpack_dashboard_widget', 'jetpackcom_rm_jp_dashboard_stats_admins', 1 );
1 Like

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