• How can I disable a plugin so only Administrators can use it, I’ve tried Role Manager, but my plugin inserts code into the WYSIWIG editor area, and I really only want this functionality for myself.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I haven’t tested it yet, but you could try something like this:

    Put this in front of plugin’s code:

    global $user_ID;
    get_currentuserinfo();
    
    if ($user_ID) {

    And after the code you could try this:

    }
    else {
    # This part should be empty i thin.
    #So non-admins can't use the plugin's functions.

    }

    Thread Starter takuhii

    (@takuhii)

    didn’t work ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disabling Plugins for Subscriber/Author’ is closed to new replies.