Automattic\WooCommerce\Internal\Admin\Settings
PaymentProviders::get_extension_suggestion_by_plugin_slug
Get a payment extension suggestion by plugin slug.
Method of the class: PaymentProviders{}
No Hooks.
Returns
?Array
. The payment extension suggestion details, or null if not found.
Usage
$PaymentProviders = new PaymentProviders(); $PaymentProviders->get_extension_suggestion_by_plugin_slug( $slug, $country_code ): ?array;
- $slug(string) (required)
- The plugin slug of the payment extension suggestion.
- $country_code(string)
- The business location country code to get the suggestions for.
Default: ''
PaymentProviders::get_extension_suggestion_by_plugin_slug() PaymentProviders::get extension suggestion by plugin slug code WC 9.8.5
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 ); }