WC_Gateway_Paypal_Notices::set_account_restriction_flag
Устарела с версии 0.5.0. Больше не поддерживается и может быть удалена. Используйте Automattic\WooCommerce\Gateways\PayPal\Notices::set_account_restriction_flag().
Set the flag indicating PayPal account restriction.
Метод класса: WC_Gateway_Paypal_Notices{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$result = WC_Gateway_Paypal_Notices::set_account_restriction_flag(): void;
Список изменений
| С версии 10.4.0 | Введена. |
| Устарела с 10.5.0 | Use Automattic\WooCommerce\Gateways\PayPal\Notices::set_account_restriction_flag() instead. |
Код WC_Gateway_Paypal_Notices::set_account_restriction_flag() WC Gateway Paypal Notices::set account restriction flag WC 11.2.2
public static function set_account_restriction_flag(): void {
wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Notices::set_account_restriction_flag()' );
PayPalNotices::set_account_restriction_flag();
}