woocommerce_dropdown_variation_attribute_options_args filter-hookWC 2.4.0

Output a list of variation attributes for use in the cart forms.

Usage

add_filter( 'woocommerce_dropdown_variation_attribute_options_args', 'wp_kama_woocommerce_dropdown_variation_attribute_options_args_filter' );

/**
 * Function for `woocommerce_dropdown_variation_attribute_options_args` filter-hook.
 * 
 * @param array $args Arguments.
 *
 * @return array
 */
function wp_kama_woocommerce_dropdown_variation_attribute_options_args_filter( $args ){

	// filter...
	return $args;
}
$args(array)
Arguments.

Changelog

Since 2.4.0 Introduced.

Where the hook is called

wc_dropdown_variation_attribute_options()
woocommerce_dropdown_variation_attribute_options_args
woocommerce/includes/wc-template-functions.php 3072
apply_filters( 'woocommerce_dropdown_variation_attribute_options_args', $args ),

Where the hook is used in WooCommerce

Usage not found.