Add filter for user capability
-
Between lines 187 and 191 of /wp-store-locator/admin/class-admin.php, could you please change instances of
manage_optionstoapply_filters( 'wpsl_capability', 'manage_options' )so that it would be possible to manually set the user capability for this plugin via a customizable filter? You would also have to update every call tocurrent_user_canto take in the filter as its argument.That way I could have a user level below administrator manage stores.
I think there’s also a mistake on line 187, you’re passing manage_options into the translate function.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Add filter for user capability’ is closed to new replies.