WordPress Dashboard block only for administrators

Publicada el 12 April, 2017

When in WordPress, a user registers access to the Dashboard, although at first only access to the options that are allowed depending on the role that has assigned in many occasions we may be interested that they can not access, for this we must put the following code to our functions.php