Skip to content

Auth Filters

18 unique filter hooks currently map to this category, across 19 call sites.

Hook Inventory

HookEditionCall SitesFirst Source
fluent_community/allow_auto_login_by_urlCore1fluent-community/Modules/Auth/AuthModdule.php:54
fluent_community/auth/after_login_redirect_urlCore2fluent-community/Modules/Auth/AuthModdule.php:43
fluent_community/auth/after_login_with_invitationCore1fluent-community/Modules/Auth/AuthModdule.php:615
fluent_community/auth/after_signup_redirect_urlCore1fluent-community/Modules/Auth/AuthModdule.php:529
fluent_community/auth/disable_rate_limitCore1fluent-community/Modules/Auth/AuthHelper.php:395
fluent_community/auth/invitationCore1fluent-community/Modules/Auth/AuthModdule.php:85
fluent_community/auth/login_fieldsCore1fluent-community/Modules/Auth/AuthHelper.php:224
fluent_community/auth/login_urlCore1fluent-community/app/Hooks/Handlers/PortalHandler.php:1249
fluent_community/auth/lost_password_urlCore1fluent-community/Modules/Auth/AuthHelper.php:219
fluent_community/auth/pre_contentCore1fluent-community/Modules/Auth/AuthModdule.php:229
fluent_community/auth/registration_enabledCore1fluent-community/Modules/Auth/AuthHelper.php:257
fluent_community/auth/settingsCore1fluent-community/app/Services/AuthenticationService.php:102
fluent_community/auth/signup_fieldsCore1fluent-community/Modules/Auth/AuthHelper.php:156
fluent_community/auth/signup_verification_email_bodyCore1fluent-community/Modules/Auth/AuthHelper.php:302
fluent_community/auth/signup_verification_mail_subjectCore1fluent-community/Modules/Auth/AuthHelper.php:290
fluent_community/create_invitation_linkCore1fluent-community/Modules/Auth/Classes/InvitationController.php:134
fluent_community/get_auth_settingsCore1fluent-community/app/Http/Controllers/AdminController.php:385
fluent_community/update_auth_settingsPRO1fluent-community-pro/app/Http/Controllers/ProAdminController.php:383

fluent_community/allow_auto_login_by_url

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Allow Auto Login By URL hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Auth/AuthModdule.php:54!user_can($tagetUser, 'delete_pages') (mixed)
$tagetUser (mixed)

Example

php
add_filter('fluent_community/allow_auto_login_by_url', function ($tagetUser, $tagetUser_2) {
    return $tagetUser;
}, 10, 2);

fluent_community/auth/after_login_redirect_url

  • Type: filter
  • Edition: Core
  • Call sites: 2
  • When it fires: Auth/After Login Redirect URL hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Auth/AuthModdule.php:43$redirectUrl (mixed)
$user (mixed)
Corefluent-community/Modules/Auth/AuthModdule.php:630$redirectUrl (mixed)
$user (mixed)

Example

php
add_filter('fluent_community/auth/after_login_redirect_url', function ($redirectUrl, $user) {
    return $redirectUrl;
}, 10, 2);

fluent_community/auth/after_login_with_invitation

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Auth/After Login With Invitation hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Auth/AuthModdule.php:615null (mixed)
$user (mixed)
$invitationToken (mixed)

Example

php
add_filter('fluent_community/auth/after_login_with_invitation', function ($param1, $user, $invitationToken) {
    return $param1;
}, 10, 3);

fluent_community/auth/after_signup_redirect_url

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Auth/After Signup Redirect URL hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Auth/AuthModdule.php:529$redirectUrl (mixed)
$user (mixed)
$_REQUEST (array)

Example

php
add_filter('fluent_community/auth/after_signup_redirect_url', function ($redirectUrl, $user, $_request) {
    return $redirectUrl;
}, 10, 3);

fluent_community/auth/disable_rate_limit

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Auth/Disable Rate Limit hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Auth/AuthHelper.php:395false (mixed)

Example

php
add_filter('fluent_community/auth/disable_rate_limit', function ($param1) {
    return $param1;
}, 10, 1);

fluent_community/auth/invitation

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Auth/Invitation hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Auth/AuthModdule.php:85null (mixed)
$inivtationToken (mixed)

Example

php
add_filter('fluent_community/auth/invitation', function ($param1, $inivtationToken) {
    return $param1;
}, 10, 2);

fluent_community/auth/login_fields

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Auth/Login Fields hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Auth/AuthHelper.php:224[ 'username' => [ 'type' => 'text', 'placeholder' => __('Your account email address', 'fluent-community'), 'label' => __('Email Address', 'fluent-community'), 'required' => true, 'sanitize_callback' => 'sanitize_user' ], 'password' => [ 'type' => 'password', 'placeholder' => __('Your account password', 'fluent-community'), 'label' => __('Password', 'fluent-community'), 'required' => true, 'sanitize_callback' => 'sanitize_text_field' ] ] (array)

Example

php
add_filter('fluent_community/auth/login_fields', function ($param1) {
    return $param1;
}, 10, 1);

fluent_community/auth/login_url

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Auth/Login URL hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Hooks/Handlers/PortalHandler.php:1249Helper::getAuthUrl() (mixed)

Example

php
add_filter('fluent_community/auth/login_url', function ($param1) {
    return $param1;
}, 10, 1);

fluent_community/auth/lost_password_url

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Auth/Lost Password URL hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Auth/AuthHelper.php:219$url (mixed)

Example

php
add_filter('fluent_community/auth/lost_password_url', function ($url) {
    return $url;
}, 10, 1);

fluent_community/auth/pre_content

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Auth/Pre Content hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Auth/AuthModdule.php:229'' (mixed)
$context (mixed)
$targetForm (mixed)
$frameData (mixed)

Example

php
add_filter('fluent_community/auth/pre_content', function ($param1, $context, $targetForm, $frameData) {
    return $param1;
}, 10, 4);

fluent_community/auth/registration_enabled

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Auth/Registration Enabled hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Auth/AuthHelper.php:257$enabled (mixed)

Example

php
add_filter('fluent_community/auth/registration_enabled', function ($enabled) {
    return $enabled;
}, 10, 1);

fluent_community/auth/settings

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Auth/Settings hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Services/AuthenticationService.php:102$authSettings (mixed)

Example

php
add_filter('fluent_community/auth/settings', function ($authSettings) {
    return $authSettings;
}, 10, 1);

fluent_community/auth/signup_fields

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Auth/Signup Fields hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Auth/AuthHelper.php:156[ 'full_name' => [ 'label' => __('Full name', 'fluent-community'), 'placeholder' => __('Your first & last name', 'fluent-community'), 'type' => 'text', 'required' => true, 'value' => $invitation ? Arr::get($invitation->meta, 'invitee_name') : '', 'sanitize_callback' => 'sanitize_text_field' ], 'email' => [ 'type' => 'email', 'placeholder' => __('Your email address', 'fluent-community'), 'label' => __('Email Address', 'fluent-community'), 'required' => true, 'value' => $invitation ? $invitation->message : '', 'readonly' => $invitation && $invitation->message, 'sanitize_callback' => 'sanitize_email' ], 'username' => [ 'type' => 'text', 'placeholder' => __('No space or special characters', 'fluent-community'), 'label' => __('Username', 'fluent-community'), 'required' => true, 'sanitize_callback' => 'sanitize_user' ], 'password' => [ 'type' => 'password', 'placeholder' => __('Password', 'fluent-community'), 'label' => __('Account Password', 'fluent-community'), 'required' => true, 'sanitize_callback' => 'sanitize_text_field' ], 'conf_password' => [ 'type' => 'password', 'placeholder' => __('Password Confirmation', 'fluent-community'), 'label' => __('Re-type Account Password', 'fluent-community'), 'required' => true, 'sanitize_callback' => 'sanitize_text_field' ], 'terms' => [ 'type' => 'inline_checkbox', 'inline_label' => self::getTermsText(), 'required' => true ] ] (array)
$invitation (mixed)

Example

php
add_filter('fluent_community/auth/signup_fields', function ($meta, $invitation) {
    return $meta;
}, 10, 2);

fluent_community/auth/signup_verification_email_body

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Auth/Signup Verification Email Body hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Auth/AuthHelper.php:302$message (mixed)
$verifcationCode (mixed)
$formData (mixed)

Example

php
add_filter('fluent_community/auth/signup_verification_email_body', function ($message, $verifcationCode, $formData) {
    return $message;
}, 10, 3);

fluent_community/auth/signup_verification_mail_subject

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Auth/Signup Verification Mail Subject hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Auth/AuthHelper.php:290sprintf(__('Your registration verification code for %s', 'fluent-community'), Arr::get($generalSettings, 'site_title')) (mixed)

Example

php
add_filter('fluent_community/auth/signup_verification_mail_subject', function ($generalSettings) {
    return $generalSettings;
}, 10, 1);

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Create Invitation Link hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Auth/Classes/InvitationController.php:134null (mixed)
$indivatationData (mixed)

Example

php
add_filter('fluent_community/create_invitation_link', function ($param1, $indivatationData) {
    return $param1;
}, 10, 2);

fluent_community/get_auth_settings

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Get Auth Settings hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/AdminController.php:385$settings (mixed)

Example

php
add_filter('fluent_community/get_auth_settings', function ($settings) {
    return $settings;
}, 10, 1);

fluent_community/update_auth_settings

  • Type: filter
  • Edition: PRO
  • Call sites: 1
  • When it fires: Update Auth Settings hook emitted from the current call site.

Call Sites

EditionSourceParameters
PROfluent-community-pro/app/Http/Controllers/ProAdminController.php:383$formattedSettings (mixed)

Example

php
add_filter('fluent_community/update_auth_settings', function ($formattedSettings) {
    return $formattedSettings;
}, 10, 1);

FluentCommunity developer documentation