woocommerce_quantity_input_args

woocommerce_quantity_input_args

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_quantity_input_args') is found 1 times:

  • /includes/wc-template-functions.php line 1823

    ‘autocomplete’ => apply_filters( ‘woocommerce_quantity_input_autocomplete’, ‘off’, $product ),
    ‘readonly’ => false,
    );

    $args = apply_filters( ‘woocommerce_quantity_input_args’, wp_parse_args( $args, $defaults ), $product );

    // Apply sanity to min/max args – min cannot be lower than 0.
    $args[‘min_value’] = max( $args[‘min_value’], 0 );
    $args[‘max_value’] = 0 < $args['max_value'] ? $args['max_value'] : ''; // Max cannot be lower than min if defined. [/php]

Examples using woocommerce_quantity_input_args