WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin

Loader::inject_wc_settings_dependencies() public WC 1.0

Injects wp-shared-settings as a dependency if it's present.

{} Это метод класса: Loader{}

Хуков нет.

Возвращает

null. Ничего.

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

$result = Loader::inject_wc_settings_dependencies();

Код Loader::inject_wc_settings_dependencies() WC 5.6.0

public static function inject_wc_settings_dependencies() {
	if ( wp_script_is( 'wc-settings', 'registered' ) ) {
		$handles_for_injection = [
			'wc-csv',
			'wc-currency',
			'wc-customer-effort-score',
			'wc-navigation',
			// NOTE: This should be removed when Gutenberg is updated and
			// the notices package is removed from WooCommerce Admin.
			'wc-notices',
			'wc-number',
			'wc-date',
			'wc-components',
			'wc-tracks',
		];
		foreach ( $handles_for_injection as $handle ) {
			$script = wp_scripts()->query( $handle, 'registered' );
			if ( $script instanceof _WP_Dependency ) {
				$script->deps[] = 'wc-settings';
			}
		}
	}
}