Merge pull request #5273 from corsonr/master
Added is_paying_customer() to easily check if a user is a WC customer
This commit is contained in:
commit
ec5abdd0f6
|
@ -189,6 +189,16 @@ class WC_Customer {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is the user a paying customer?
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
function is_paying_customer( $user_id ) {
|
||||||
|
return '1' === get_user_meta( $user_id, 'paying_customer', true );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is customer VAT exempt?
|
* Is customer VAT exempt?
|
||||||
|
|
Loading…
Reference in New Issue