WordPress.org

Ready to get started?Download WordPress

Forums

WP Admin No Show
[resolved] Plugin access (5 posts)

  1. pedrok
    Member
    Posted 1 year ago #

    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/

  2. Scriptrunner (Doug Sparling)
    Member
    Plugin Author

    Posted 1 year ago #

    I believe it will work for you as is. Give it a try and let me know.

  3. pedrok
    Member
    Posted 1 year ago #

    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

  4. pedrok
    Member
    Posted 1 year ago #

    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

  5. Scriptrunner (Doug Sparling)
    Member
    Plugin Author

    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.