View Categories

Useful Code Snippets

< 1 min read

Disable Email Open Tracking

add_filter('fluentcrm_disable_email_open_tracking', '__return_true');

Disable Email Link Clicks and short URLs

add_filter('fluent_crm/track_click', '__return_false');

Add Custom Contact Status

(Change “Withdrawed” to the custom contact status you want to display.)

add_filter('fluent_crm/contact_statuses', function($statuses){
      $statuses[] = "Withdrawed";

      return $statuses;
  },10, 1);

Add Custom Contact Type

(Replace “Student” with the new contact type and “This is a Student” with the description)

add_filter('fluent_crm/contact_types', function($types){

     $types['Student'] = __('This is a Student', 'fluent-crm');

     return $types;
 }, 10, 1);

Latest comments (5)

Avatar for Chris

Is it possible to change the unsubscribe behaviour: I habve sme transactional emails that users should still receive after unsubscribing, my idea is to NOT unsibscribe them from a list called “Transactional” while they will be unsubscribed from all other lists

Avatar for Nazir Himel

Hi Chris, Thanks for your feature request. We don’t know how users use FluentCRM. Many of our users are beginners and having this as an option might result in a lot of spam complaints if not implemented the right way. Do you have any idea how we can counter this?

Avatar for Wendy

Hey Chris, not sure if you have figured this out yet but I’ll tell you what I do. I have opt-out tags for every kind of promotional campaign I run. For example, I have a campaign that is abbreviated to PR2025. For every promotional email related to PR2025 there is a note that says something like “Want to stop receiving emails about {PR2025} but still stay on my list to get other important information? Click here…”
The click here utilizes a smartlink that adds the tag “Opt-Out PR2025”, then when i send my promo marketing for PR2025 I exclude Opt-Out PR2025.

Nazir, you could have a “transactional only” status and a field/checkbox on the contact for “transactional emails required” that is checked when someone unsubscribes. Then they are set to “transactional only” status. Transactional only status would not be included by default.