WC_Admin_Settings::get_settings_pages │ public static │ WC 1.0

Include the settings page classes.

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

Хуки из метода

Возвращает

null. Ничего (null).

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

$result = WC_Admin_Settings::get_settings_pages();

Код WC_Admin_Settings::get_settings_pages() WC 11.2.2

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

		include_once __DIR__ . '/settings/class-wc-settings-page.php';

		$settings[] = include_once __DIR__ . '/settings/class-wc-settings-general.php';
		$settings[] = include_once __DIR__ . '/settings/class-wc-settings-products.php';
		$settings[] = include_once __DIR__ . '/settings/class-wc-settings-tax.php';
		$settings[] = include_once __DIR__ . '/settings/class-wc-settings-shipping.php';
		$settings[] = include_once __DIR__ . '/settings/class-wc-settings-payment-gateways.php';
		$settings[] = include_once __DIR__ . '/settings/class-wc-settings-accounts.php';
		$settings[] = include_once __DIR__ . '/settings/class-wc-settings-emails.php';
		$settings[] = include_once __DIR__ . '/settings/class-wc-settings-integrations.php';
		$settings[] = include_once __DIR__ . '/settings/class-wc-settings-site-visibility.php';
		$settings[] = include_once __DIR__ . '/settings/class-wc-settings-point-of-sale.php';
		$settings[] = include_once __DIR__ . '/settings/class-wc-settings-advanced.php';

		self::$settings = apply_filters( 'woocommerce_get_settings_pages', $settings );
		add_action(
			'admin_head',
			function () {
				if ( function_exists( 'get_current_screen' ) ) {
					$screen = get_current_screen();
					if ( 'woocommerce_page_wc-settings' === $screen->id ) {
						$screen->remove_help_tabs();
					}
				}
			}
		);
	}

	return self::$settings;
}