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

apply_filters('woocommerce_loop_add_to_cart_args') is found 1 times:

  • /includes/wc-template-functions.php line 1425
    1421
    1422
    1423
    1424
    1425
    1426
    1427
    1428
    1429
    1430
    1431
    * @param array $args Arguments.
     *
     * @since 2.4.11
     */
    $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'] ) ) {