Viewing 3 replies - 1 through 3 (of 3 total)
  • You can return true to our shop_as_client_allow_checkout filter based on your rules, like a profile role, for example.

    Can you provide a little more clarity on what you mean by

    “You can return true to our shop_as_client_allow_checkout filter based on your rules, like a profile role, for example.”

    Where would one input those items? We have profiles that come from another plugin – “B2B User” , etc.

    Thank you

    Hi,

    You can do something like this:

    add_filter( 'shop_as_client_allow_checkout', function( $allow ) {
    	if ( current_user_can( 'role_created_by_the_other_plugin' ) ) return true;
    	return $allow;
    });
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add others profiles instead shop manager’ is closed to new replies.