Filter: mt_add_to_cart_input

apply_filters( 'mt_add_to_cart_input', $input, $input_type, $value, $attributes, $disable, $max, $available, $event_id ) → {string}

Filter the add to cart input field.

Parameters:
Name Type Description
$input string

Default input form field.

$input_type string

Type of input requested.

$value int

Default value set.

$attributes string

String of field attributes provided for input.

$disable string

Attribute to set field as disabled.

$max int

Max value allowed.

$available int

Number of tickets available.

$event_id int

Event ID.

Source:
Returns:
Type
string