Skip to content

Media Actions

6 unique action hooks currently map to this category, across 11 call sites.

Hook Inventory

HookEditionCall SitesFirst Source
fluent_community/check_rate_limit/media_uploadCore1fluent-community/app/Http/Controllers/FeedsController.php:923
fluent_community/delete_remote_media_{this}Core1fluent-community/app/Models/Media.php:132
fluent_community/document/local_file_accessPRO1fluent-community-pro/app/Modules/DocumentLibrary/DocumentModule.php:263
fluent_community/lesson/additional_media_updatedCore1fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:970
fluent_community/maybe_delete_draft_mediasCore1fluent-community/app/Hooks/Handlers/Scheduler.php:17
fluent_community/remove_medias_by_urlCore + PRO6fluent-community-pro/app/Modules/Quiz/QuizHelper.php:83

fluent_community/check_rate_limit/media_upload

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Check Rate Limit/Media Upload hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/FeedsController.php:923$user (mixed)

Example

php
add_action('fluent_community/check_rate_limit/media_upload', function ($user) {
}, 10, 1);

fluent_community/delete_remote_media_{this}

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Delete Remote Media {This} hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Models/Media.php:132$this (mixed)

Example

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

fluent_community/document/local_file_access

  • Type: action
  • Edition: PRO
  • Call sites: 1
  • When it fires: Document/Local File Access hook emitted from the current call site.

Call Sites

EditionSourceParameters
PROfluent-community-pro/app/Modules/DocumentLibrary/DocumentModule.php:263$document (mixed)
$forceDownload (mixed)

Example

php
add_action('fluent_community/document/local_file_access', function ($document, $forceDownload) {
}, 10, 2);

fluent_community/lesson/additional_media_updated

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Lesson/Additional Media Updated hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Course/Http/Controllers/CourseAdminController.php:970$request->all() (array)
$lesson (mixed)
$updateData (mixed)

Example

php
add_action('fluent_community/lesson/additional_media_updated', function ($all, $lesson, $updateData) {
}, 10, 3);

fluent_community/maybe_delete_draft_medias

  • Type: action
  • Edition: Core
  • Call sites: 1
  • When it fires: Maybe Delete Draft Medias hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Hooks/Handlers/Scheduler.php:17No parameters

Example

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

fluent_community/remove_medias_by_url

  • Type: action
  • Edition: Core + PRO
  • Call sites: 6
  • When it fires: Remove Medias By URL hook emitted from the current call site.

Call Sites

EditionSourceParameters
PROfluent-community-pro/app/Modules/Quiz/QuizHelper.php:83$deleteMediaUrls (mixed)
[ 'sub_object_id' => $lessonId, ] (array)
Corefluent-community/app/Http/Controllers/ProfileController.php:212$deletedMedias (mixed)
[ 'user_id' => $xprofile->user_id, 'object_sources' => ['user_avatar', 'user_cover_photo'] ] (array)
Corefluent-community/app/Models/BaseSpace.php:302$deletePhotos (mixed)
[ 'sub_object_id' => $this->id, ] (array)
Corefluent-community/app/Models/SpaceGroup.php:111$deletePhotos (mixed)
[ 'sub_object_id' => $this->id, ] (array)
Corefluent-community/app/Services/Helper.php:329[$url] (array)
[ 'sub_object_id' => $subObjectId, ] (array)
Corefluent-community/app/Services/LockscreenService.php:188$deleteMediaUrls (mixed)
[ 'sub_object_id' => $spaceId, ] (array)

Example

php
add_action('fluent_community/remove_medias_by_url', function ($deleteMediaUrls, $lessonId) {
}, 10, 2);

FluentCommunity developer documentation