# FluentCRM Action Hooks

FluentCRM Core Intermediate

FluentCRM has many interesting filter hooks that let developers change default settings and even extend FluentCRM with new functionality.

# What are Action Hooks

Action hooks are used to run custom code when certain events occur.

# Available of Action Hooks in FluentCRM

# Contact / Subscriber Specific


# fluent_crm/contact_created

# fluent_crm/contact_updated

# fluentcrm_contact_added_to_tags

# fluentcrm_contact_added_to_lists

# fluentcrm_contact_removed_from_tags

# fluentcrm_contact_removed_from_lists

# fluentcrm_subscriber_status_to_{$new_status}

# fluent_crm/subscriber_unsubscribed_from_web_ui

# fluent_crm/subscribed_confirmed_via_double_optin

# fluentcrm_subscriber_contact_type_to_{$new_type}

# fluent_crm/contact_email_changed

# Contact Activity Specifics


# fluentcrm_email_url_clicked

# fluent_crm/track_activity_by_subscriber

# fluent_crm/pref_form_self_contact_updated

# List Specifics


# fluent_crm/list_created

# fluent_crm/list_updated

# fluent_crm/list_deleted

# Tag Specifics


# fluent_crm/tag_created

# fluent_crm/tag_updated

# fluent_crm/tag_deleted

# Email Template Specific


# fluent_crm/email_template_created

# fluent_crm/email_template_duplicated

# fluent_crm/email_template_updated

# Email Campaign Specific


# fluent_crm/campaign_created

# fluent_crm/campaign_data_updated

# fluent_crm/campaign_deleted

# fluent_crm/campaign_duplicated

# fluent_crm/campaign_recipients_query_updated

# fluent_crm/campaign_scheduled

# fluent_crm/campaign_set_send_now

# fluent_crm/campaign_processing_start

# Automation Funnel Specific


fluent_crm/automation_funnel_start

This action runs when a funnel starts for a subscriber

Parameters

  • $funnel Funnel Model
  • $subscriber Subscriber Model

Usage:

add_action('fluent_crm/automation_funnel_start', function($funnel, $subscriber) {
   // Do whatever you want
}, 10, 2);
1
2
3
fluent_crm/automation_funnel_completed

This action runs when a funnel has been completed for a subscriber

Parameters

  • $funnel Funnel Model
  • $subscriber Subscriber Model

Usage:

add_action('fluent_crm/automation_funnel_completed', function($funnel, $subscriber) {
   // Do whatever you want
}, 10, 2);
1
2
3

# Admin App & View Specific


fluent_crm/admin_app

After Main FluentCRM Admin View

Usage:

add_action('fluent_crm/admin_app', function() {
   echo 'My Custom Content Here';
});
1
2
3

# Email Template Design Specific


fluent_crm/email_header

If you want to add your own custom CSS for a specific email template or all email template then you can use this hook.

Parameters

  • $designSlug String - Design Name (classic | plain | raw_classic | simple)

Usage:

/*
* Add Custom CSS for plain design type
*/
add_action('fluent_crm/email_header', function($designName) {
   if($designName == 'plain') {
    ?>
    <style>
      h1 {
        color: red;
      }
    </style>
    <?php
   }
});
1
2
3
4
5
6
7
8
9
10
11
12
13
14

# Double Optin Confirmation Page Actions


# fluent_crm/confirmation_head

# Manage Subscriptions Page Actions


# fluent_crm/manage_subscription_head

# Unsubscribe Page Actions


# fluent_crm/unsubscribe_head

# fluent_crm/before_unsubscribe_form

# fluent_crm/before_unsubscribe_form

# fluent_crm/before_unsubscribe_submit

# fluent_crm/after_unsubscribe_content

# View On Browser Page Actions


# fluent_crm/view_on_browser_before_heading

# fluent_crm/view_on_browser_before_email_body

# fluent_crm/view_on_browser_after_email_body

# Fluent Forms - Contact Specific


fluent_crm/contact_added_by_fluentform

This action runs when a contact has been added via Fluent Forms

Parameters

  • $subscriber Subscriber Model
  • $entry Array
  • $form Object
  • $feed Array

Usage:

add_action('fluent_crm/contact_added_by_fluentform', function($subscriber, $entry, $form, $feed) {
   // Do whatever you want with the $subscriber created by Fluent Forms
}, 10, 4);
1
2
3
fluent_crm/contact_updated_by_fluentform

This action runs when a contact has been updated via Fluent Forms

Parameters

  • $subscriber Subscriber Model
  • $entry Array
  • $form Object
  • $feed Array

Usage:

add_action('fluent_crm/contact_updated_by_fluentform', function($subscriber, $entry, $form, $feed) {
   // Do whatever you want with the $subscriber updated via Fluent Forms
}, 10, 4);
1
2
3