Skip to content

mt_redirect

github-actions[bot] edited this page Nov 27, 2026 · 5 revisions

Force add to cart redirect. Return 1 to override plugin settings and redirect to the shopping cart after tickets are added to the cart.

Auto-generated Example

add_filter(
   'mt_redirect',
    function( string $redirect ) {
        // Your code here.
        return $redirect;
    }
);

Parameters

  • string $redirect Boolean value as string: 1 or 0.

Returns

string Boolean value as string: 1 or 0.

Files

apply_filters( 'mt_redirect', $redirect )

← All Hooks

Clone this wiki locally