Let shop managers add/edit fields

Per default, our plugin requires users to have to manage_options capability to edit/add field groups. This capability is only assigned to administrators.

If you want the shop manager to be able to add/edit fields, add this code snippet to your website (read here how):

add_filter( 'wapf/setting/capability', function($v) { 
    return 'manage_woocommerce';
} );
Code language: PHP (php)

Was this article helpful?

Related Articles