Email Template Hooks
FluentCRM Core IntermediateThese action hooks fire when email templates are created, updated, or duplicated.
fluent_crm/email_template_created
This action runs after an email template has been created.
Parameters
$templateIdINT - Created Template ID$templateDataArray - Template Data as Array
Usage:
php
add_action('fluent_crm/email_template_created', function($templateId, $templateData) {
// Do your stuff here
}, 10, 2);fluent_crm/email_template_duplicated
This action runs after an email template has been duplicated.
Parameters
$templateIdINT - Created Template ID$oldTemplateDataArray - Original Template Data as Array
Usage:
php
add_action('fluent_crm/email_template_duplicated', function($templateId, $oldTemplateData) {
// Do your stuff here
}, 10, 2);fluent_crm/email_template_updated
This action runs after an email template has been updated.
Parameters
$templateDataarray - Update Data as key value pair$templateTemplate Model
Usage:
php
add_action('fluent_crm/email_template_updated', function($templateData, $template) {
// Do your stuff here
}, 10, 2);