WC_Admin_Settings::get_settings_pages()public staticWC 1.0

Include the settings page classes.

Method of the class: WC_Admin_Settings{}

Hooks from the method

Return

null. Nothing (null).

Usage

$result = WC_Admin_Settings::get_settings_pages();

WC_Admin_Settings::get_settings_pages() code WC 9.0.1

public static function get_settings_pages() {
	if ( empty( self::$settings ) ) {
		$settings = array();

		include_once dirname( __FILE__ ) . '/settings/class-wc-settings-page.php';

		$settings[] = include __DIR__ . '/settings/class-wc-settings-general.php';
		$settings[] = include __DIR__ . '/settings/class-wc-settings-products.php';
		$settings[] = include __DIR__ . '/settings/class-wc-settings-tax.php';
		$settings[] = include __DIR__ . '/settings/class-wc-settings-shipping.php';
		$settings[] = include __DIR__ . '/settings/class-wc-settings-payment-gateways.php';
		$settings[] = include __DIR__ . '/settings/class-wc-settings-accounts.php';
		$settings[] = include __DIR__ . '/settings/class-wc-settings-emails.php';
		$settings[] = include __DIR__ . '/settings/class-wc-settings-integrations.php';
		if ( \Automattic\WooCommerce\Admin\Features\Features::is_enabled( 'launch-your-store' ) ) {
			$settings[] = include __DIR__ . '/settings/class-wc-settings-site-visibility.php';
		}
		$settings[] = include __DIR__ . '/settings/class-wc-settings-advanced.php';

		self::$settings = apply_filters( 'woocommerce_get_settings_pages', $settings );
	}

	return self::$settings;
}