Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders

Mollie::get_custom_settings_urlprivateWC 1.0

Get the URL to the custom settings page for Mollie.

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

Хуков нет.

Возвращает

Строку. 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 10.8.1

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 $settings_url;
}