Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Dave

    (@go3asy)

    All good found it ??

    Thread Starter Dave

    (@go3asy)

    Marking as reoslved

    Nothing as douchy to tell that you found the solution and not sharing it.

    The only option now is to adjust the capabilities that are required for users to access the store locator plugin screen through a filter.

    If you add this to your functions.php, then users who can ‘edit_posts’ are allowed to add/edit stores. And editors are allowed to ‘edit_posts’ so they should have access, see https://codex.www.ads-software.com/Roles_and_Capabilities#Editor

    add_filter( 'wpsl_capability', 'my_custom_capabilities' );
    
    function my_custom_capabilities() {
        return 'edit_posts';
    }

    Source

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change user permission’ is closed to new replies.