This action hook fires when a subscriber's status has been changed to a new status
Possible Hooks
fluentcrm_subscriber_status_to_subscribed
fluentcrm_subscriber_status_to_unsubscribed
fluentcrm_subscriber_status_to_pending
fluentcrm_subscriber_status_to_bounced
fluentcrm_subscriber_status_to_complained
Parameters
$subscriber Subscriber Model
$oldStatus string - old status of the contact (eg: subscribed |
unsubscribed | pending | bounced | complained)
Usage:
add_action('fluentcrm_subscriber_status_to_subscribed',function($subscriber,$oldStatus){// the subscriber got subscribed status. You can do run your code here},10,2);
This action hook fires when a subscriber unsubscribe from web UI. Please note that fluentcrm_subscriber_status_to_unsubscribed action also fire before this action.
Parameters
$subscriber Subscriber Model
$postedData array - post data of the unsubscribe form as key value pair
Usage:
add_action('fluent_crm/subscriber_unsubscribed_from_web_ui',function($subscriber,$data){// the contact unsubscribed from web UI. Do your staffs here},10,2);
This action hook fires when a subscriber do double optin by clicking DOI link. Please note that fluentcrm_subscriber_status_to_subscribed action also fire before this action.
Parameters
$subscriber Subscriber Model
Usage:
add_action('fluent_crm/subscriber_unsubscribed_from_web_ui',function($subscriber){// the contact condired the subscription from web UI.});
This action hook fires when a subscriber's contact_type has been changed to a new type
Possible Hooks
fluentcrm_subscriber_contact_type_to_lead
fluentcrm_subscriber_contact_type_to_customer
Parameters
$subscriber Subscriber Model
$oldType string - old type of the contact (eg: lead | customer)
Usage:
add_action('fluentcrm_subscriber_contact_type_to_customer',function($subscriber,$oldType){// the conact's type changed to customer. You can do run your code here},10,2);
This action runs when a contact login to your site, click a link. This hook track the last_activity timestamp
Parameters
$subscriber INT|Subscriber Model, When use please check if it's a
Usage:
add_action('fluent_crm/track_activity_by_subscriber',function($subscriber){if(is_numeric($subscriber)){$subscriber=fluentCrmApi('contacts')->getContact($subscriber);}// Do you staffs});
This hook fires on double optin confirmation head. If you want to add any custom css or head attributes then you can use this hook.
Anything echo from this hook will be added to <head> </head> in the page
Parameters
$subscriber Subscriber Model
Usage:
/*
* Add Custom CSS for double ontin confirmation page
*/
add_action('fluent_crm/confirmation_head', function($subscriber) {
?>
<style>
# your custom css here
</style><?php});
This hook fires on double optin confirmation footer. If you want to add your own content in the double optin confirmation page then you may use this hook.
This hook fires on manage subscription page's head. If you want to add any custom css or head attributes then you can use this hook.
Anything echo from this hook will be added to <head> </head> in the page
Parameters
$subscriber Subscriber Model
Usage:
/*
* Add Custom CSS for manage subscription page
*/
add_action('fluent_crm/manage_subscription_head', function($subscriber) {
?>
<style>
# your custom css here
</style><?php});
This hook fires on Unsubscribe page's head. If you want to add any custom css or head attributes then you can use this hook.
Anything echo from this hook will be added to <head> </head> in the page
Parameters
$subscriber Subscriber Model
$campaignEmail CampaignEmail Model
Usage:
/*
* Add Custom CSS for Unsubscribe page
*/
add_action('fluent_crm/unsubscribe_head', function($subscriber, $campaignEmail) {
?>
<style>
# your custom css here
</style><?php},10,2);
This hook fires on Unsubscribe page's before header HTML. If you want to add own HTML at the starting of the page, then you may use this hook.
Parameters
$subscriber Subscriber Model
$campaignEmail CampaignEmail Model
Usage:
/*
* Add Custom Content for Unsubscribe page's before default content
*/add_action('fluent_crm/before_unsubscribe_form',function($subscriber,$campaignEmail){// Add your own code here},10,2);
This hook fires on Unsubscribe page's before header HTML. If you want to add own HTML at the starting of the page, then you may use this hook.
Parameters
$subscriber Subscriber Model
$campaignEmail CampaignEmail Model
Usage:
/*
* Add Custom Content for Unsubscribe page's before default content
*/add_action('fluent_crm/before_unsubscribe_form',function($subscriber,$campaignEmail){// Add your own code here},10,2);
This hook fires on Unsubscribe page's before submit HTML. If you want to add own HTML before the button, then you may use this hook.
Parameters
$subscriber Subscriber Model
$campaignEmail CampaignEmail Model
Usage:
/*
* Add Custom Content for Unsubscribe page's before the button
*/add_action('fluent_crm/before_unsubscribe_submit',function($subscriber,$campaignEmail){// Add your own code here},10,2);
This hook fires on Unsubscribe page's after the form content.
Parameters
$subscriber Subscriber Model
$campaignEmail CampaignEmail Model
Usage:
/*
* Add Custom Content for Unsubscribe page's before the button
*/add_action('fluent_crm/after_unsubscribe_content',function($subscriber,$campaignEmail){// Add your own code here},10,2);
This hook fires on View On Browser page's head. If you want to add any custom css or head attributes then you can use this hook.
Anything echo from this hook will be added to <head> </head> in the page
Parameters
$campaignEmail CampaignEmail Model
Usage:
/*
* Add Custom CSS
*/
add_action('fluent_crm/unsubscribe_head', function($campaignEmail) {
?>
<style>
# your custom css here
</style><?php});
This hook fires on View On Browser page's before header HTML. If you want to add own HTML at the starting of the page, then you may use this hook.
Parameters
$campaignEmail CampaignEmail Model
Usage:
/*
* Add Custom Content for View On Browser page's before default content
*/add_action('fluent_crm/view_on_browser_before_heading',function($campaignEmail){// Add your own code here});
This hook fires on View On Browser page's before header HTML. If you want to add own HTML before the email content, then you may use this hook.
Parameters
$campaignEmail CampaignEmail Model
Usage:
/*
* Add Custom Content before email body
*/add_action('fluent_crm/view_on_browser_before_email_body',function($campaignEmail){// Add your own code here});
This hook fires on View On Browser page's after email body HTML.
Parameters
$campaignEmail CampaignEmail Model
Usage:
/*
* Add Custom Content for after email body
*/add_action('fluent_crm/view_on_browser_after_email_body',function($campaignEmail){// Add your own code here});
This hook fires on Unsubscribe footer. If you want to add your own content in the page then you may use this hook.
Parameters
$campaignEmail CampaignEmail Model
Usage:
/*
* Add Custom content at the footer of the page
*/add_action('fluent_crm/view_on_browser_footer',function($campaignEmail){// add your code here},10,2);
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);