Using {num} in a confirmation email

[ad_1]

Hello!

This isn’t a current email placeholder but I created a snippet to accomplish this:

function ru_add_num_registered_template( $search_replace, $sanitized_data ) {

$event_id = isset( $sanitized_data['event_id'] ) ? $sanitized_data['event_id'] : false;

if ( false !== $event_id ) {
$event_meta = rtec_get_event_meta( $event_id );
$search_replace['{num-registered}'] = $event_meta['num_registered'];

}

return $search_replace;
}
add_filter( 'rtec_email_templating', 'ru_add_num_registered_template', 10, 2 );

Just whack it into your themes functions.php file or use something like WPCode and then the placeholder {num-registered} will work as you are hoping.

Thanks,

Craig

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer