Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
Mollie::get_settings_url
Get the settings URL for a payment gateway.
Метод класса: Mollie{}
Хуков нет.
Возвращает
Строку. The settings URL for the payment gateway.
Использование
$Mollie = new Mollie(); $Mollie->get_settings_url( $payment_gateway ): string;
- $payment_gateway(WC_Payment_Gateway) (обязательный)
- The payment gateway object.
Код Mollie::get_settings_url() Mollie::get settings url WC 10.9.1
public function get_settings_url( WC_Payment_Gateway $payment_gateway ): string {
// Don't target any section because there are none to target when Mollie is not connected.
if ( 'mollie_stand_in' === $payment_gateway->id ) {
return $this->get_custom_settings_url();
}
// Target the payment methods section when the gateway is connected.
return $this->get_custom_settings_url( 'mollie_payment_methods' );
}