woocommerce_shared_settings

woocommerce_shared_settings

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_shared_settings') is found 1 times:

  • /src/Blocks/Assets/AssetDataRegistry.php line 241
    		 * @deprecated
    		 * @param array $data Settings data.
    		 * @return array
    		 */
    		$settings = apply_filters( 'woocommerce_shared_settings', $this->data );
    
    		// Surface a deprecation warning in the error console.
    		if ( has_filter( 'woocommerce_shared_settings' ) ) {
    			$error_handle  = 'deprecated-shared-settings-error';
    			$error_message = '`woocommerce_shared_settings` filter in Blocks is deprecated. See https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/trunk/docs/contributors/block-assets.md';
    			// phpcs:ignore WordPress.WP.EnqueuedResourceParameters.NotInFooter,WordPress.WP.EnqueuedResourceParameters.MissingVersion
    

See this hook used in plugins: