Automattic\WooCommerce\Internal\Admin\Settings

Payments::get_payment_extension_suggestions()publicWC 1.0

Get the payment extension suggestions for the given location.

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

Хуков нет.

Возвращает

Массив[]. The payment extension suggestions for the given location, split into preferred and other.

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

$Payments = new Payments();
$Payments->get_payment_extension_suggestions( $location ): array;
$location(строка) (обязательный)
The location for which the suggestions are being fetched.

Код Payments::get_payment_extension_suggestions() WC 9.6.0

public function get_payment_extension_suggestions( string $location ): array {
	return $this->providers->get_extension_suggestions( $location, self::SUGGESTIONS_CONTEXT );
}