product_attributes_type_selector filter-hookWC 2.4.0

Get attribute types.

Usage

add_filter( 'product_attributes_type_selector', 'wp_kama_product_attributes_type_selector_filter' );

/**
 * Function for `product_attributes_type_selector` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_product_attributes_type_selector_filter( $array ){

	// filter...
	return $array;
}
$array
-

Changelog

Since 2.4.0 Introduced.

Where the hook is called

wc_get_attribute_types()
product_attributes_type_selector
woocommerce/includes/wc-attribute-functions.php 251-256
return (array) apply_filters(
	'product_attributes_type_selector',
	array(
		'select' => __( 'Select', 'woocommerce' ),
	)
);

Where the hook is used in WooCommerce

Usage not found.