Repository navigation
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.
add_filter(
'mt_redirect',
function( string $redirect ) {
// Your code here.
return $redirect;
}
);-
string$redirectBoolean value as string: 1 or 0.
string Boolean value as string: 1 or 0.
apply_filters( 'mt_redirect', $redirect )Filter the footer used for HTML email messages.
add_filter(
'mt_html_email_footer',
function(
string $footer,
array $data
) {
// Your code here.
return $footer;
},
10,
2
);-
string$footerHTML footer content. -
array$dataEmail data array.
string
apply_filters( 'mt_html_email_footer', $footer, $data )