Automattic\WooCommerce\Gateways\PayPal

Notices::set_account_restriction_flagpublic staticWC 10.5.0

Set the flag indicating PayPal account restriction.

Метод класса: Notices{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = Notices::set_account_restriction_flag(): void;

Список изменений

С версии 10.5.0 Введена.

Код Notices::set_account_restriction_flag() WC 11.0.1

public static function set_account_restriction_flag(): void {
	if ( 'no' === get_option( 'woocommerce_paypal_account_restricted_status', 'no' ) ) {
		update_option( 'woocommerce_paypal_account_restricted_status', 'yes', false );
	}
}