Automattic\WooCommerce\Internal\Admin\Settings
PaymentProviders::get_extension_suggestion_by_plugin_slug()
Get a payment extension suggestion by plugin slug.
Метод класса: PaymentProviders{}
Хуков нет.
Возвращает
?Массив
. The payment extension suggestion details, or null if not found.
Использование
$PaymentProviders = new PaymentProviders(); $PaymentProviders->get_extension_suggestion_by_plugin_slug( $slug, $country_code ): ?array;
- $slug(строка) (обязательный)
- The plugin slug of the payment extension suggestion.
- $country_code(строка)
- The business location country code to get the suggestions for.
По умолчанию: ''
Код PaymentProviders::get_extension_suggestion_by_plugin_slug() PaymentProviders::get extension suggestion by plugin slug WC 9.6.2
public function get_extension_suggestion_by_plugin_slug( string $slug, string $country_code = '' ): ?array { return $this->extension_suggestions->get_by_plugin_slug( $slug, $country_code, Payments::SUGGESTIONS_CONTEXT ); }