Terrorpixel1991
8/31/2016 - 2:26 PM

Abonnent - Backend verweigern

Abonnent - Backend verweigern

function redirect_subscribers() {
	if (current_user_can('subscriber') && $_SERVER['PHP_SELF'] != '/wp-admin/admin-ajax.php') {
		wp_redirect(site_url());
		exit();
	}

}

add_action('admin_init','redirect_subscribers');