WC_Legacy_Customer::is_paying_customer()
Is the user a paying customer?
Method of the class: WC_Legacy_Customer{}
No Hooks.
Return
true|false
.
Usage
$WC_Legacy_Customer = new WC_Legacy_Customer(); $WC_Legacy_Customer->is_paying_customer( $user_id );
- $user_id(int)
- -
Default: ''
WC_Legacy_Customer::is_paying_customer() WC Legacy Customer::is paying customer code WC 7.7.0
function is_paying_customer( $user_id = '' ) { wc_deprecated_function( 'WC_Customer::is_paying_customer', '3.0', 'WC_Customer::get_is_paying_customer' ); if ( ! empty( $user_id ) ) { $user_id = get_current_user_id(); } return '1' === get_user_meta( $user_id, 'paying_customer', true ); }