Customize the unsubscribe page in MailPoet

Customize the unsubscribe page in MailPoet on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'mailpoet_unsubscribe_confirmation_page', 'mp_modify_unsubscribe_confirmation_page', 10, 2);
function mp_modify_unsubscribe_confirmation_page( $HTML, $unsubscribeUrl ) {
	$HTML = '<hr>';
 	$HTML .= '<center>You can <a href="'.$unsubscribeUrl.'">click here</a> to unsubscribe.</center>';
 	$HTML .= '<hr>';
    return $HTML;
}