Skip to content

Spaces Actions

30 unique action hooks currently map to this category, across 57 call sites.

Hook Inventory

HookEditionCall SitesFirst Source
fluent_community/after_header_menuCore1fluent-community/app/Views/portal/header.php:58
fluent_community/after_header_right_menu_itemsCore1fluent-community/app/Hooks/Handlers/PortalHandler.php:366
fluent_community/after_portal_sidebarCore1fluent-community/app/Views/portal/main_sidebar.php:144
fluent_community/before_header_menu_itemsCore1fluent-community/app/Hooks/Handlers/PortalHandler.php:310
fluent_community/before_header_right_menu_itemsCore1fluent-community/app/Hooks/Handlers/PortalHandler.php:246
fluent_community/before_portal_domCore4fluent-community/app/Views/portal_page.php:78
fluent_community/before_portal_renderedCore1fluent-community/app/Hooks/Handlers/PortalHandler.php:857
fluent_community/course/topic_completedCore1fluent-community/Modules/Course/Services/CourseHelper.php:210
fluent_community/portal_action_{action}Core1fluent-community/app/Hooks/Handlers/PortalHandler.php:783
fluent_community/portal_footerCore + PRO2fluent-community-pro/app/Hooks/Handlers/ShortCodeHandler.php:82
fluent_community/portal_headCore1fluent-community/app/Views/portal_page.php:74
fluent_community/portal_head_metaCore1fluent-community/app/Views/portal_page.php:34
fluent_community/portal_headerCore + PRO6fluent-community-pro/app/Hooks/Handlers/ShortCodeHandler.php:64
fluent_community/portal_htmlCore1fluent-community/app/Views/portal_page.php:80
fluent_community/portal_render_for_userCore1fluent-community/app/Hooks/Handlers/PortalHandler.php:843
fluent_community/portal_sidebarCore + PRO7fluent-community-pro/app/Hooks/Handlers/ShortCodeHandler.php:71
fluent_community/portal/not_logged_inCore1fluent-community/app/Hooks/Handlers/PortalHandler.php:804
fluent_community/portal/viewedCore1fluent-community/app/Hooks/Handlers/PortalHandler.php:809
fluent_community/rendering_headless_portalCore1fluent-community/app/Hooks/Handlers/PortalHandler.php:854
fluent_community/spaceCore3fluent-community/app/Hooks/Handlers/PortalHandler.php:413
fluent_community/space/before_deleteCore1fluent-community/app/Http/Controllers/SpaceController.php:505
fluent_community/space/createdCore1fluent-community/app/Http/Controllers/SpaceController.php:136
fluent_community/space/deletedCore1fluent-community/app/Http/Controllers/SpaceController.php:522
fluent_community/space/join_requestedCore1fluent-community/app/Http/Controllers/SpaceController.php:456
fluent_community/space/joinedCore + PRO6fluent-community-pro/app/Services/Integrations/FluentCRM/ContactAdvancedFilter.php:245
fluent_community/space/member/role_updatedCore2fluent-community/app/Http/Controllers/SpaceController.php:573
fluent_community/space/update_meta_settings_{metaProvider}Core1fluent-community/app/Http/Controllers/SpaceController.php:329
fluent_community/space/updatedCore2fluent-community/app/Http/Controllers/SpaceController.php:323
fluent_community/space/user_leftCore + PRO4fluent-community-pro/app/Services/Integrations/FluentCRM/ContactAdvancedFilter.php:365
fluent_community/top_menu_right_itemsCore1fluent-community/app/Views/portal/header.php:61

fluent_community/after_header_menu

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: After Header Menu hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Views/portal/header.php:58$context (mixed)

Example

php
add_action('fluent_community/after_header_menu', function ($context) {
}, 10, 1);

fluent_community/after_header_right_menu_items

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: After Header Right Menu Items hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Hooks/Handlers/PortalHandler.php:366$auth (mixed)

Example

php
add_action('fluent_community/after_header_right_menu_items', function ($auth) {
}, 10, 1);

fluent_community/after_portal_sidebar

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: After Portal Sidebar hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Views/portal/main_sidebar.php:144$context (mixed)

Example

php
add_action('fluent_community/after_portal_sidebar', function ($context) {
}, 10, 1);

fluent_community/before_header_menu_items

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Before Header Menu Items hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Hooks/Handlers/PortalHandler.php:310$auth (mixed)
$context (mixed)

Example

php
add_action('fluent_community/before_header_menu_items', function ($auth, $context) {
}, 10, 2);

fluent_community/before_header_right_menu_items

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Before Header Right Menu Items hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Hooks/Handlers/PortalHandler.php:246$auth (mixed)

Example

php
add_action('fluent_community/before_header_right_menu_items', function ($auth) {
}, 10, 1);

fluent_community/before_portal_dom

  • Type: action
  • Edition: Core
  • Call sites: 4
  • When it fires: Before Portal Dom hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Views/portal_page.php:78No parameters
Corefluent-community/Modules/Gutenberg/EditorBlock.php:165No parameters
Corefluent-community/Modules/Theming/templates/fluent-community-frame-full.php:24No parameters
Corefluent-community/Modules/Theming/templates/fluent-community-frame.php:24No parameters

Example

php
add_action('fluent_community/before_portal_dom', function () {
}, 10, 0);

fluent_community/before_portal_rendered

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Before Portal Rendered hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Hooks/Handlers/PortalHandler.php:857$data (mixed)

Example

php
add_action('fluent_community/before_portal_rendered', function ($data) {
}, 10, 1);

fluent_community/course/topic_completed

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Course/Topic Completed hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Services/CourseHelper.php:210$topic (mixed)
$userId (mixed)
$lesson (mixed)

Example

php
add_action('fluent_community/course/topic_completed', function ($topic, $userId, $lesson) {
}, 10, 3);

fluent_community/portal_action_{action}

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Portal Action {Action} hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Hooks/Handlers/PortalHandler.php:783$_GET (mixed)

Example

php
add_action('fluent_community/portal_action_{action}', function ($_get) {
}, 10, 1);

  • Type: action
  • Edition: Core + PRO
  • Call sites: 2
  • When it fires: Portal Footer hook emitted from the current call site.

Call Sites

EditionSourceParameters
PROfluent-community-pro/app/Hooks/Handlers/ShortCodeHandler.php:82No parameters
Corefluent-community/app/Views/portal_page.php:84No parameters

Example

php
add_action('fluent_community/portal_footer', function () {
}, 10, 0);

fluent_community/portal_head

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Portal Head hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Views/portal_page.php:74No parameters

Example

php
add_action('fluent_community/portal_head', function () {
}, 10, 0);

fluent_community/portal_head_meta

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Portal Head Meta hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Views/portal_page.php:34$landing_route (mixed)

Example

php
add_action('fluent_community/portal_head_meta', function ($landing_route) {
}, 10, 1);

fluent_community/portal_header

  • Type: action
  • Edition: Core + PRO
  • Call sites: 6
  • When it fires: Portal Header hook emitted from the current call site.

Call Sites

EditionSourceParameters
PROfluent-community-pro/app/Hooks/Handlers/ShortCodeHandler.php:64'headless' (mixed)
Corefluent-community/app/Views/portal/portal.php:3'headless' (mixed)
Corefluent-community/Modules/Gutenberg/EditorBlock.php:169$contenx (mixed)
Corefluent-community/Modules/Gutenberg/EditorBlock.php:204'headless' (mixed)
Corefluent-community/Modules/Theming/templates/fluent-community-frame-full.php:27'wp' (mixed)
Corefluent-community/Modules/Theming/templates/fluent-community-frame.php:27'wp' (mixed)

Example

php
add_action('fluent_community/portal_header', function ($param1) {
}, 10, 1);

fluent_community/portal_html

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Portal HTML hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Views/portal_page.php:80No parameters

Example

php
add_action('fluent_community/portal_html', function () {
}, 10, 0);

fluent_community/portal_render_for_user

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Portal Render For User hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Hooks/Handlers/PortalHandler.php:843$xprofile (mixed)

Example

php
add_action('fluent_community/portal_render_for_user', function ($xprofile) {
}, 10, 1);

fluent_community/portal_sidebar

  • Type: action
  • Edition: Core + PRO
  • Call sites: 7
  • When it fires: Portal Sidebar hook emitted from the current call site.

Call Sites

EditionSourceParameters
PROfluent-community-pro/app/Hooks/Handlers/ShortCodeHandler.php:71'headless' (mixed)
Corefluent-community/app/Http/Controllers/OptionController.php:37'ajax' (mixed)
Corefluent-community/app/Views/portal/portal.php:9'headless' (mixed)
Corefluent-community/Modules/Gutenberg/EditorBlock.php:176$contenx (mixed)
Corefluent-community/Modules/Gutenberg/EditorBlock.php:212'headless' (mixed)
Corefluent-community/Modules/Theming/templates/fluent-community-frame-full.php:33'wp' (mixed)
Corefluent-community/Modules/Theming/templates/fluent-community-frame.php:33'wp' (mixed)

Example

php
add_action('fluent_community/portal_sidebar', function ($param1) {
}, 10, 1);

fluent_community/portal/not_logged_in

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Portal/Not Logged In hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Hooks/Handlers/PortalHandler.php:804$authUrl (mixed)

Example

php
add_action('fluent_community/portal/not_logged_in', function ($authUrl) {
}, 10, 1);

fluent_community/portal/viewed

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Portal/Viewed hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Hooks/Handlers/PortalHandler.php:809No parameters

Example

php
add_action('fluent_community/portal/viewed', function () {
}, 10, 0);

fluent_community/rendering_headless_portal

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Rendering Headless Portal hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Hooks/Handlers/PortalHandler.php:854$data (mixed)

Example

php
add_action('fluent_community/rendering_headless_portal', function ($data) {
}, 10, 1);

fluent_community/space

  • Type: action
  • Edition: Core
  • Call sites: 3
  • When it fires: Space hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Hooks/Handlers/PortalHandler.php:413[&$space] (array)
Corefluent-community/app/Http/Controllers/SpaceController.php:222[&$space] (array)
Corefluent-community/app/Http/Controllers/SpaceController.php:246[&$space] (array)

Example

php
add_action('fluent_community/space', function ($space) {
}, 10, 1);

fluent_community/space/before_delete

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Space/Before Delete hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/SpaceController.php:505$space (Space

Example

php
add_action('fluent_community/space/before_delete', function ($space) {
}, 10, 1);

fluent_community/space/created

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Space/Created hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/SpaceController.php:136$space (Space

Example

php
add_action('fluent_community/space/created', function ($space, $data) {
}, 10, 2);

fluent_community/space/deleted

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Space/Deleted hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/SpaceController.php:522$spaceId (Space

Example

php
add_action('fluent_community/space/deleted', function ($spaceId) {
}, 10, 1);

fluent_community/space/join_requested

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Space/Join Requested hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/SpaceController.php:456$space (Space

Example

php
add_action('fluent_community/space/join_requested', function ($space, $id, $param3) {
}, 10, 3);

fluent_community/space/joined

  • Type: action
  • Edition: Core + PRO
  • Call sites: 6
  • When it fires: Space/Joined hook emitted from the current call site.

Call Sites

EditionSourceParameters
PROfluent-community-pro/app/Services/Integrations/FluentCRM/ContactAdvancedFilter.php:245$space (Space
Corefluent-community/app/Http/Controllers/SpaceController.php:458$space (Space
Corefluent-community/app/Http/Controllers/SpaceController.php:587$space (Space
Corefluent-community/app/Http/Controllers/SpaceController.php:605$space (Space
Corefluent-community/app/Services/Helper.php:1615$space (Space
Corefluent-community/app/Services/Helper.php:1639$space (Space

Example

php
add_action('fluent_community/space/joined', function ($space, $userId, $param3) {
}, 10, 3);

fluent_community/space/member/role_updated

  • Type: action
  • Edition: Core
  • Call sites: 2
  • When it fires: Space/Member/Role Updated hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/SpaceController.php:573$space (Space
Corefluent-community/app/Http/Controllers/SpaceController.php:590$space (Space

Example

php
add_action('fluent_community/space/member/role_updated', function ($space, $pivot) {
}, 10, 2);

fluent_community/space/update_meta_settings_{metaProvider}

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Space/Update Meta Settings {MetaProvider} hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/SpaceController.php:329$metaData (mixed)
$space (Space

Example

php
add_action('fluent_community/space/update_meta_settings_{metaProvider}', function ($metaData, $space) {
}, 10, 2);

fluent_community/space/updated

  • Type: action
  • Edition: Core
  • Call sites: 2
  • When it fires: Space/Updated hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/SpaceController.php:323$space (Space
Corefluent-community/app/Models/BaseSpace.php:312$this (mixed)
$dirty (mixed)

Example

php
add_action('fluent_community/space/updated', function ($space, $data) {
}, 10, 2);

fluent_community/space/user_left

  • Type: action
  • Edition: Core + PRO
  • Call sites: 4
  • When it fires: Space/User Left hook emitted from the current call site.

Call Sites

EditionSourceParameters
PROfluent-community-pro/app/Services/Integrations/FluentCRM/ContactAdvancedFilter.php:365$space (Space
PROfluent-community-pro/app/Services/Integrations/FluentCRM/RemoveFromSpaceAction.php:87$space (Space
Corefluent-community/app/Http/Controllers/SpaceController.php:642$space (Space
Corefluent-community/app/Services/Helper.php:1689$space (Space

Example

php
add_action('fluent_community/space/user_left', function ($space, $userId, $param3) {
}, 10, 3);

fluent_community/top_menu_right_items

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Top Menu Right Items hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Views/portal/header.php:61$context (mixed)

Example

php
add_action('fluent_community/top_menu_right_items', function ($context) {
}, 10, 1);

FluentCommunity developer documentation