Automattic\WooCommerce\Internal\Admin\Settings
Payments::get_payment_extension_suggestions
Get the payment extension suggestions for the given location.
Method of the class: Payments{}
No Hooks.
Returns
Array[]
. The payment extension suggestions for the given location, split into preferred and other.
Usage
$Payments = new Payments(); $Payments->get_payment_extension_suggestions( $location ): array;
- $location(string) (required)
- The location for which the suggestions are being fetched.
Payments::get_payment_extension_suggestions() Payments::get payment extension suggestions code WC 9.9.4
public function get_payment_extension_suggestions( string $location ): array { return $this->providers->get_extension_suggestions( $location, self::SUGGESTIONS_CONTEXT ); }