woocommerce_loop_add_to_cart_args

woocommerce_loop_add_to_cart_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_loop_add_to_cart_args') is found 1 times:

  • /includes/wc-template-functions.php line 1402
    			if ( is_a( $product, 'WC_Product_Simple' ) ) {
    				$defaults['attributes']['data-success_message'] = $product->add_to_cart_success_message();
    			}
    
    			$args = apply_filters( 'woocommerce_loop_add_to_cart_args', wp_parse_args( $args, $defaults ), $product );
    
    			if ( ! empty( $args['attributes']['aria-describedby'] ) ) {
    				$args['attributes']['aria-describedby'] = wp_strip_all_tags( $args['attributes']['aria-describedby'] );
    			}
    
    			if ( isset( $args['attributes']['aria-label'] ) ) {