How to prevent someone or some role from accessing the WordPress admin panel

2 thoughts on “How to prevent someone or some role from accessing the WordPress admin panel”

  1. When you are explaining the DOING_AJAX, may be the nought (!) is a typo `!defined( ‘DOING_AJAX’ )`, because you are saying if DOING_AJAX, means Let AJAX pass… isn’t it?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s