• Resolved jtg

    (@favdes)


    Hello,

    Is there a way to allow access to the plugin if the user does not have full admin rights in WP?

    We’ve tried using the User Role Editor plugin but options for APF do not appear. The only way to provide access seems to be by assigning full admin rights, which we do not want to do.

    If anyone could help, I would be grateful.

    Many thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Wombat Plugins

    (@maartenbelmans)

    Hi @favdes

    By default, the plugin is accessible to users with the “manage_options” permission, which is given to administrators only. Our plugin exposes a WordPress filter so you can write custom code to change the capability it listens to. For example, to change it to users with “manage_woocommerce” permission, use this code snippet:

    add_filter( ‘wapf/setting/capability’, function () {
    return ‘manage_woocommerce’;
    } );

    Users that need to be able to change APF fields would also need permissions to update/edit products and posts.

    Thread Starter jtg

    (@favdes)

    That is perfect! Very helpful and fast, too.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.