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.

Method of the class: Mollie{}

No Hooks.

Returns

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

Usage

// private - for code of main (parent) class only
$result = $this->get_custom_settings_url( $section ): string;
$section(string)
The section to navigate to.
Default: ''

Mollie::get_custom_settings_url() code WC 11.1.2

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
	);
}