RestroPress

⌘K
  1. Home
  2. Docs
  3. RestroPress
  4. Developer Docs
  5. Filters
  6. rpress_email_templates

rpress_email_templates

The  rpress_email_templates filter allows you to register new email template names that can be applied to emails sent through RestroPress.

A new template can be registered by adding an additional key, value pair to the array:

function pw_rpress_register_email_template( $templates ) {
	$templates['default'] = 'My Custom Template Name';
	return $templates;
}
add_filter( 'rpress_email_templates', 'pw_rpress_register_email_template' );

Place your custom templates in a folder called  rpress_templates/emails inside your currently active theme.

How can we help?