Created
September 29, 2020 12:43
-
-
Save alanef/169d0198f7963e224c06977afea7ca61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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