Allow other roles to change settings

Introduction

By default Joinchat settings is a submenu under “Settings” and can only be edited by users with administrator role.

You can change the required capability to edit Joinchat general settings with the filter 'joinchat_capability'.

Shop managers

add_filter( 'joinchat_capability', function(){ return 'manage_woocommerce'; } );

Allow “editors”

add_filter( 'joinchat_capability', function(){ return 'edit_pages'; } )

Note

Add this filter via Code Snippets:

Content

Versión gratuita

Snippets

Versión Premium

Chat Funnel

In this section

🍪 We use cookies to personalize and enhance your experience on our site. Visit our Privacy Policy to learn more.

BY USING OUR SITE, YOU AGREE TO OUR USE OF COOKIES.