Skip to content

Instantly share code, notes, and snippets.

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

  • Save alanef/102108ac31e8bca32d12db1b4c2ce4e8 to your computer and use it in GitHub Desktop.

Select an option

Save alanef/102108ac31e8bca32d12db1b4c2ce4e8 to your computer and use it in GitHub Desktop.
<?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