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

woocommerce_shared_settings хук-фильтр . WC 1.0

Low level hook for registration of new data late in the cycle.

Developers, do not use this hook as it is likely to be removed. Instead, use the data api: Automattic\WooCommerce\Blocks\Package::container()

->get( Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry::class )
->add( $key, $value )

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

add_filter( 'woocommerce_shared_settings', 'filter_function_name_4733' );
function filter_function_name_4733( $data ){
	// filter...

	return $data;
}
$data
-

Где вызывается хук

AssetDataRegistry::initialize_core_data()
woocommerce_shared_settings
woocommerce/packages/woocommerce-blocks/src/Assets/AssetDataRegistry.php 129-132
$settings = apply_filters(
	'woocommerce_shared_settings',
	$this->data
);

Где используется хук в ядре WooCommerce

woocommerce/packages/woocommerce-blocks/src/Assets/AssetDataRegistry.php 45
add_filter( 'woocommerce_shared_settings', array( $this, 'component_settings' ), 20 );
woocommerce/packages/woocommerce-blocks/src/Assets/AssetDataRegistry.php 63
add_filter( 'woocommerce_shared_settings', array( $this, 'component_settings' ), 30 );
woocommerce/packages/woocommerce-blocks/src/Assets/AssetDataRegistry.php 226
add_filter( 'woocommerce_shared_settings', array( $this, 'component_settings' ), 20 );
woocommerce/packages/woocommerce-blocks/src/Assets/AssetDataRegistry.php 58
add_filter( 'woocommerce_shared_settings', array( $this, 'component_settings' ), 30 );
woocommerce/packages/woocommerce-blocks/src/Assets/AssetDataRegistry.php 69
add_filter( 'woocommerce_shared_settings', array( __CLASS__, 'add_component_settings' ) );
woocommerce/packages/woocommerce-blocks/src/Assets/AssetDataRegistry.php 26
add_filter( 'woocommerce_shared_settings', array( __CLASS__, 'get_wc_block_data' ) );