WordPress at Your Fingertips
filter is not described

__experimental_woocommerce_blocks_add_data_attributes_to_block filter-hook . WC 1.0

WooCommerce Blocks Block Names

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

Usage

add_filter( '__experimental_woocommerce_blocks_add_data_attributes_to_block', 'filter_function_name_3987' );
function filter_function_name_3987( $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_block
woocommerce/packages/woocommerce-blocks/src/BlockTypesController.php 97
$allowed_blocks = (array) apply_filters( '__experimental_woocommerce_blocks_add_data_attributes_to_block', [] );

Where in WP core the hook is used WooCommerce

Usage not found.