Shop as Client - Allow other user roles to use the functionality (Shop managers and Administrators already have the ability to do so)
This file contains 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
<?php | |
add_filter( 'shop_as_client_allow_checkout', function() { | |
return current_user_can( 'whatever_role' ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment