Skip to content
View as Markdown

Email Template Hooks

FluentCRM Core Intermediate

These 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

  • $templateId INT - Created Template ID
  • $templateData Array - 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

  • $templateId INT - Created Template ID
  • $oldTemplateData Array - 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

  • $templateData array - Update Data as key value pair
  • $template Template Model

Usage:

php
add_action('fluent_crm/email_template_updated', function($templateData, $template) {
   // Do your stuff here
}, 10, 2);