Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Created February 13, 2020 06:05
Show Gist options
  • Select an option

  • Save webtoffee-git/38678e8f1e66d4b305af6f016abaacd1 to your computer and use it in GitHub Desktop.

Select an option

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
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