Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders

Mollie::get_custom_settings_url │ private │ WC 1.0

Get the URL to the custom settings page for Mollie.

Метод класса: Mollie{}

Хуков нет.

Возвращает

string. The URL to the custom settings page for Mollie.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_custom_settings_url( $section ): string;
$section(строка)
The section to navigate to.
По умолчанию: ''

Код Mollie::get_custom_settings_url() WC 11.3.0

private function get_custom_settings_url( string $section = '' ): string {
	$settings_url = admin_url( 'admin.php?page=wc-settings&tab=mollie_settings' );

	if ( ! empty( $section ) ) {
		$settings_url = add_query_arg( 'section', $section, $settings_url );
	}

	return add_query_arg(
		array(
			'from' => Payments::FROM_PAYMENTS_SETTINGS,
		),
		$settings_url
	);
}