Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter another-webmaster

    (@another-webmaster)

    Duh… answering my own(stupid in this case) question.

    We gave our editors the edit_users and create_users capability 😀 and therefore they got also the capability to use this plugin. Which is our problem and NOT the responsibility of the plugin!
    We will have to make ourselfs a function to prevent them making use of this (imho great) plugin.

    Plugin Author Brandon Allen

    (@thebrandonallen)

    You could do something like this:

    function my_restrict_author_slug_editing_to_admins() {
        return is_super_admin();
    }
    add_filter( 'ba_eas_can_edit_author_slug', 'my_restrict_author_slug_editing_to_admins' );
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Restrict this plugin to admin only’ is closed to new replies.