Created
July 31, 2020 10:56
-
-
Save andrewlimaza/37ec269e2e4c033abfed75f89ca3753d to your computer and use it in GitHub Desktop.
Add billable_invoice email template to Email Templates Admin Editor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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