Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Shop as Client - Allow other user roles to use the functionality (Shop managers and Administrators already have the ability to do so)
<?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