Skip to content

Instantly share code, notes, and snippets.

@alanef
Created September 29, 2020 12:43
Show Gist options
  • Select an option

  • Save alanef/169d0198f7963e224c06977afea7ca61 to your computer and use it in GitHub Desktop.

Select an option

Save alanef/169d0198f7963e224c06977afea7ca61 to your computer and use it in GitHub Desktop.
<?php
add_filter( /**
*
* Filter the message generated to email confirmation
*
* @param $message
* @param $content
* @param $details
* @param $close
* @param $id
* @param $payment
*
* @return string output message for registration email
*/
'qem_registration_email_message',
function ( $message, $content, $details, $close, $id, $payment ) {
if ( ! function_exists( 'qem_get_the_numbers' ) ) {
return $message;
}
$attending = qem_get_the_numbers( $id, $payment );
$message = '<html>' . $content . $details . '<h1>' . 'Numbers Attending: ' . $attending . '</h1>' . $close . '</html>';
return $message;
},
10,
6
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment