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.8.7.0

apply_filters('woocommerce_loop_add_to_cart_args') is found 1 times:

  • /includes/wc-template-functions.php line 1379
    					'rel'              => 'nofollow',
    				),
    			);
    
    			$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'] ) ) {