Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save strangerstudios/c17ca7dfc697efab09e6b3ba5a0351a0 to your computer and use it in GitHub Desktop.
Save strangerstudios/c17ca7dfc697efab09e6b3ba5a0351a0 to your computer and use it in GitHub Desktop.
Tell PMPro to look in the pages directory of this plugin for PMPro email templates.
<?php
/*
Tell PMPro to look in the pages directory of this plugin for PMPro email templates.
Add this code to a custom plugin.
Make sure that there is a /emails/ directory in the plugin directory with your templates in it.
*/
function my_pmpro_email_custom_template_path($default_templates) {
$default_templates[] = dirname(__FILE__) . "/email/";
return $default_templates;
}
add_filter('pmpro_email_custom_template_path', 'my_pmpro_email_custom_template_path');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment