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:
Mike Jolley 2014-04-04 14:23:53 +01:00
commit ec5abdd0f6
1 changed files with 10 additions and 0 deletions

View File

@ -189,6 +189,16 @@ class WC_Customer {
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?