rpress_email_template

Author: bibhu 19 views

The rpress_email_template filter allows you to force a specific email template to be used for all emails sent through RestroPress.

function pw_rpress_change_email_template() {
	add_filter( 'rpress_email_template', 'pw_rpress_set_email_template' );
}
add_action( 'rpress_email_send_before', 'pw_rpress_change_email_template' );

function pw_rpress_set_email_template( $template_name ) {
	return 'blue';
}