WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Plugin access

[Resolved] Plugin access

  • Hi,

    This plugin seems just what I’m looking for, just one question though:

    Does the plugin still allow for admin access using other plugins? For instance: I’m using the Events Manager plugin which at some point creates a booking for an event using an Ajax call with the current logged in users credentials. A similar plugin was causing this Ajax call to fail based on it being directed to the homepage due to the user being a subscriber. (Trying it logged in as administrator did not yield a failed Ajax call).

    Thanks in advance!

    Pedro

    http://wordpress.org/extend/plugins/wp-admin-no-show/

Viewing 4 replies - 1 through 4 (of 4 total)
  • I believe it will work for you as is. Give it a try and let me know.

    Indeed it does! (Sorry for lazy me not trying it first but I saw you were pretty active on the response..)

    Probably has something to do with you using the ‘admin_head’ hook instead of the ‘init’ hook which was used by the other plugin.

    Cheers for making me not having to script my own solution!

    Pedro

    One other thing, far be it from me to tell you how to do things, but:

    I would include this on the FAQ page since it seems a lot of people are looking to block admin access to subscribers whilst still being able to use the admin functionality from the front-end.

    Pedro

    You are correct, admin-ajax.php does not included admin-header.php, so do(admin_head) is not called.

    Thanks for the suggestion, I’ll be sure and add that to the FAQ next time I do an update. Suggestions for things I never would have thought of – one of the many things I love about the WP community!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Plugin access’ is closed to new replies.