Skip to content

Instantly share code, notes, and snippets.

@andrewlimaza
Created July 31, 2020 10:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewlimaza/37ec269e2e4c033abfed75f89ca3753d to your computer and use it in GitHub Desktop.
Save andrewlimaza/37ec269e2e4c033abfed75f89ca3753d to your computer and use it in GitHub Desktop.
Add billable_invoice email template to Email Templates Admin Editor
<?php
/**
* Add the billable_invoice email template to the Email Templates Admin Editor.
* Follow this guide to add custom code to your WordPress site - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function my_add_email_template_to_pmproet_add_on( $template ) {
$template['billable_invoice'] = array(
'subject' => "Your latest invoice",
'description' => 'Billable Invoice'
);
return $template;
}
add_filter( 'pmproet_templates', 'my_add_email_template_to_pmproet_add_on' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment