Integrations
Hook Reference
| Hook | Description |
|---|---|
fluent_affiliate/affiliate_created_via_fluent_form | Fired when a new affiliate is created through a Fluent Forms registration feed. |
fluent_affiliate/affiliate_created_via_fluent_form
Fired when a new affiliate is created through a Fluent Forms registration feed.
Parameters
| Parameter | Type | Description |
|---|---|---|
$affiliate | Affiliate | The new Affiliate model. |
$user | WP_User | The WordPress user linked to the affiliate. |
$feedData | array | The Fluent Forms feed data that triggered the creation. |
Source: app/Modules/Integrations/FluentForms/FluentFormAffiliateRegistration.php
php
add_action('fluent_affiliate/affiliate_created_via_fluent_form', function($affiliate, $user, $feedData) {
// Integration-specific post-processing
}, 10, 3);