WordPress at Your Fingertips
filter is not described

__experimental_woocommerce_blocks_add_data_attributes_to_namespace filter-hook . WC 1.0

WooCommerce Blocks Namespaces

This hook defines which block namespaces should have block name and attribute data- attributes appended on render.

Usage

add_filter( '__experimental_woocommerce_blocks_add_data_attributes_to_namespace', 'filter_function_name_2134' );
function filter_function_name_2134( $allowed_namespaces ){
	// filter...

	return $allowed_namespaces;
}
$allowed_namespaces(array)
List of namespaces.

Where the hook is called

BlockTypesController::add_data_attributes()
__experimental_woocommerce_blocks_add_data_attributes_to_namespace
woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php 88
$allowed_namespaces = array_merge( [ 'woocommerce', 'woocommerce-checkout' ], (array) apply_filters( '__experimental_woocommerce_blocks_add_data_attributes_to_namespace', [] ) );

Where in WP core the hook is used WooCommerce

Usage not found.