Skip to content

Portal

Hook Reference

HookDescription
fluent_affiliate/auth/register_form_after_fieldsFired inside the affiliate registration form, after all fields and before the submit button.
fluent_affiliate/render_login_formFired inside the portal login form template.
fluent_affiliate/render_signup_formFired inside the portal sign-up form template.
fluent_affiliate/email_headFired inside the <head> section of the FluentAffiliate email template.

fluent_affiliate/auth/register_form_after_fields

Fired inside the affiliate registration form, after all fields and before the submit button. Pro renders the captcha widget here; use it to print extra markup such as consent notices.

Source: app/Modules/Auth/AuthHandler.php

php
add_action('fluent_affiliate/auth/register_form_after_fields', function() {
    echo '<p class="fa-terms">By joining you agree to our partner terms.</p>';
});

fluent_affiliate/render_login_form

Fired inside the portal login form template. Use to output custom HTML before the default form.

Source: app/Modules/Portal/CustomerPortal.php

php
add_action('fluent_affiliate/render_login_form', function() {
    echo '<p class="notice">Please log in to view your affiliate dashboard.</p>';
});

fluent_affiliate/render_signup_form

Fired inside the portal sign-up form template.

Source: app/Modules/Portal/CustomerPortal.php

php
add_action('fluent_affiliate/render_signup_form', function() {
    echo '<div class="custom-signup-notice">Join today!</div>';
});

fluent_affiliate/email_head

Fired inside the <head> section of the FluentAffiliate email template. Use to inject custom CSS.

Source: app/Views/email/email_template.php

php
add_action('fluent_affiliate/email_head', function() {
    echo '<style>body { font-family: Arial, sans-serif; }</style>';
});

FluentAffiliate developer documentation