Automattic\WooCommerce\Admin\Features\PaymentGatewaySuggestions
DefaultPaymentGateways::get_default_recommendation_priority()
Get the default recommendation priority for a payment gateway. This is used when a country is not in the $recommendation_priority_map array.
Метод класса: DefaultPaymentGateways{}
Хуков нет.
Возвращает
int
. Priority.
Использование
$result = DefaultPaymentGateways::get_default_recommendation_priority( $id );
- $id(строка) (обязательный)
- Payment gateway id.
Код DefaultPaymentGateways::get_default_recommendation_priority() DefaultPaymentGateways::get default recommendation priority WC 9.2.3
private static function get_default_recommendation_priority( $id ) { if ( ! $id || ! array_key_exists( $id, self::$recommendation_priority ) ) { return null; } return self::$recommendation_priority[ $id ]; }