User roles / invoice
-
Hello!
So we need to send invoices for certain groups.
And I got a snippet to use it with user roles, but I cant find in ur actions/filters or hooks how to restrict using a specific group/role.Here is an example of the snippet.
$user = $order->get_user(); if ( ! in_array( 'retailer', (array) $user->roles ) ) { // the 'retailer' user role $allowed = false; }
can you help?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘User roles / invoice’ is closed to new replies.