WC_Gateway_Paypal_Transact_Account_Manager::get_transact_account_data │ public │ WC 1.0

Устарела с версии 0.5.0. Больше не поддерживается и может быть удалена. Используйте Automattic\WooCommerce\Gateways\PayPal\TransactAccountManager::get_transact_account_data(). This method will be removed in 11.0.0.

Get the Transact account (merchant or provider) data. Performs a fetch if the account is not in cache or expired.

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

Хуков нет.

Возвращает

array|null. Returns null if the transact account cannot be retrieved.

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

$WC_Gateway_Paypal_Transact_Account_Manager = new WC_Gateway_Paypal_Transact_Account_Manager();
$WC_Gateway_Paypal_Transact_Account_Manager->get_transact_account_data( $account_type );
$account_type(строка) (обязательный)
The type of account to get (merchant or provider).

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

Устарела с 10.5.0 Use Automattic\WooCommerce\Gateways\PayPal\TransactAccountManager::get_transact_account_data() instead. This method will be removed in 11.0.0.

Код WC_Gateway_Paypal_Transact_Account_Manager::get_transact_account_data() WC 11.2.2

public function get_transact_account_data( $account_type ) {
	wc_deprecated_function(
		__METHOD__,
		'10.5.0',
		PayPalTransactAccountManager::class . '::get_transact_account_data()'
	);

	return $this->transact_account_manager->get_transact_account_data( $account_type );
}