• user-permissions plugin from https://urbangiraffe.com/

    The plugin restricts access to pages within the authoring/dashboard session but also in the surf the site/guest browsing session.

    I would like to either allow a surfer/guest to see any page by determining the guest session user id
    or
    disable the plugin during the surfer/guest session but have it enabled during the authoring/dashboard session

Viewing 1 replies (of 1 total)
  • Thread Starter sjwrick

    (@sjwrick)

    OK looks like I found a solution though it may be a bit clunky.
    in the plugin itself I added the following code:

    $this_page_up = $_SERVER[‘REQUEST_URI’];
    if (strpos($this_page_up,”wp-admin”)) {

    …. plugin code…

    }

    Basically if the wp-admin directory is not in the URI then the plugin is not run.

    What is a better way?

Viewing 1 replies (of 1 total)
  • The topic ‘disable a plugin for browsing session’ is closed to new replies.