woocommerce_quantity_input_placeholder

woocommerce_quantity_input_placeholder

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_quantity_input_placeholder') is found 1 times:

  • /includes/wc-template-functions.php line 2016
    2012
    2013
    2014
    2015
    2016
    2017
    2018
    2019
    2020
    2021
        'step'         => apply_filters( 'woocommerce_quantity_input_step', 1, $product ),
        'pattern'      => apply_filters( 'woocommerce_quantity_input_pattern', has_filter( 'woocommerce_stock_amount', 'intval' ) ? '[0-9]*' : '' ),
        'inputmode'    => apply_filters( 'woocommerce_quantity_input_inputmode', has_filter( 'woocommerce_stock_amount', 'intval' ) ? 'numeric' : '' ),
        'product_name' => $product ? $product->get_title() : '',
        'placeholder'  => apply_filters( 'woocommerce_quantity_input_placeholder', '', $product ),
        // When autocomplete is enabled in firefox, it will overwrite actual value with what user entered last. So we default to off.
        'autocomplete' => apply_filters( 'woocommerce_quantity_input_autocomplete', 'off', $product ),
        'readonly'     => false,
    );