Automattic\WooCommerce\Gateways\PayPal
Notices::clear_account_restriction_flag
Clear the flag indicating PayPal account restriction.
Метод класса: Notices{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = Notices::clear_account_restriction_flag(): void;
Список изменений
| С версии 10.5.0 | Введена. |
Код Notices::clear_account_restriction_flag() Notices::clear account restriction flag WC 11.0.1
public static function clear_account_restriction_flag(): void {
if ( 'yes' === get_option( 'woocommerce_paypal_account_restricted_status', 'no' ) ) {
update_option( 'woocommerce_paypal_account_restricted_status', 'no' );
}
}