WC_Customer::set_is_paying_customer()publicWC 3.0.0

Set if the user a paying customer.

Method of the class: WC_Customer{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Customer = new WC_Customer();
$WC_Customer->set_is_paying_customer( $is_paying_customer );
$is_paying_customer(true|false) (required)
If is a paying customer.

Changelog

Since 3.0.0 Introduced.

WC_Customer::set_is_paying_customer() code WC 8.7.0

public function set_is_paying_customer( $is_paying_customer ) {
	$this->set_prop( 'is_paying_customer', (bool) $is_paying_customer );
}