WC_Legacy_Customer::is_paying_customer( int $user_id = '' )

Is the user a paying customer?


Description Description


Parameters Parameters

$user_id

(Optional)

Default value: ''


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/legacy/class-wc-legacy-customer.php

	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 );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.