Skip to content

mt_cart_default_value

github-actions[bot] edited this page Nov 30, 2026 · 6 revisions

Filter the default ticket input value. Sets the default number of tickets to order.

Auto-generated Example

add_filter(
   'mt_cart_default_value',
    function(
        string int,
        string $type
    ) {
        // Your code here.
        return int;
    },
    10,
    2
);

Parameters

  • string int $value Default numeric value. Default '0'. Other variable names: $0
  • string $type Ticket type displayed.

Returns

string

Files

apply_filters( 'mt_cart_default_value', '0', $type )

← All Hooks

Clone this wiki locally