Automattic\WooCommerce\Admin\Features\PaymentGatewaySuggestions

DefaultPaymentGateways::get_default_recommendation_priority()private staticWC 1.0

Get the default recommendation priority for a payment gateway. This is used when a country is not in the $recommendation_priority_map array.

Method of the class: DefaultPaymentGateways{}

No Hooks.

Return

Int. Priority.

Usage

$result = DefaultPaymentGateways::get_default_recommendation_priority( $id );
$id(string) (required)
Payment gateway id.

DefaultPaymentGateways::get_default_recommendation_priority() code WC 9.0.1

private static function get_default_recommendation_priority( $id ) {
	if ( ! $id || ! array_key_exists( $id, self::$recommendation_priority ) ) {
		return null;
	}
	return self::$recommendation_priority[ $id ];
}