WordPress Dashboard block only for administrators
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
add_action( 'init', 'blockusers_init' ); function blockusers_init() { if ( is_admin() && ! current_user_can( 'administrator' ) ) { wp_redirect( home_url() ); exit; } }
Pingback: fuck google
Pingback: get androxal generic when will be available
Pingback: cheapest price for enclomiphene
Pingback: get rifaximin usa where to buy
Pingback: cheap xifaxan australia suppliers
Pingback: purchase staxyn united kingdom
Pingback: necesito comprar avodart en chile
Pingback: discount dutasteride overnight no rx
Pingback: purchase flexeril cyclobenzaprine generic pharmacy in canada
Pingback: cheapest buy gabapentin for sale usa
Pingback: how to buy fildena no prescription usa
Pingback: no prescription cod itraconazole
Pingback: kamagra předpis kanady
Pingback: pharmacie en ligne kamagra livraison