Created
September 29, 2020 12:36
-
-
Save alanef/102108ac31e8bca32d12db1b4c2ce4e8 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 autoresponder content | |
| * this can be used to add custom shortcodes | |
| * | |
| * @param $msg | |
| * @param $id | |
| * @param $payment | |
| * | |
| * @return string content for autoresponder | |
| */ | |
| 'qem_autoresponder-message-content', | |
| function ( $msg, $id, $payment ) { | |
| if ( ! function_exists( 'qem_get_the_numbers' ) ) { | |
| return $msg; | |
| } | |
| $attending = qem_get_the_numbers( $id, $payment ); | |
| $msg = str_replace( '[number]', $attending, $msg ); | |
| return $msg; | |
| }, | |
| 10, | |
| 3 | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment