Created
February 13, 2020 06:05
-
-
Save webtoffee-git/38678e8f1e66d4b305af6f016abaacd1 to your computer and use it in GitHub Desktop.
Grant permission for additional users roles to export WooCommerce contents - WebToffee Import Export plugins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter('hf_user_permission_roles', 'add_additional_user_role', 10, 1); | |
| function add_additional_user_role($wf_roles) { | |
| array_push($wf_roles, 'current-role-slug'); | |
| return $wf_roles; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment