Skip to content

Media Filters

13 unique filter hooks currently map to this category, across 22 call sites.

Hook Inventory

HookEditionCall SitesFirst Source
fluent_community/generated_upload_file_nameCore1fluent-community/app/Services/Libs/FileSystem.php:158
fluent_community/handle_remove_bulk_mediaCore2fluent-community/app/Hooks/Handlers/CleanupHandler.php:138
fluent_community/media_public_url_{this}Core1fluent-community/app/Models/Media.php:117
fluent_community/media_signed_public_url_{this}Core1fluent-community/app/Models/Media.php:122
fluent_community/media_upload_dataCore + PRO4fluent-community-pro/app/Modules/DocumentLibrary/Http/DocumentController.php:253
fluent_community/media_upload_max_file_sizeCore2fluent-community/app/Http/Controllers/FeedsController.php:939
fluent_community/media_upload_max_file_unitCore2fluent-community/app/Http/Controllers/FeedsController.php:938
fluent_community/media_upload_max_width_{context}Core2fluent-community/app/Http/Controllers/FeedsController.php:978
fluent_community/media_upload_resizeCore2fluent-community/app/Http/Controllers/FeedsController.php:975
fluent_community/rate_limit/media_upload_per_minuteCore1fluent-community/app/Hooks/Handlers/RateLimitHandler.php:67
fluent_community/upload_folder_nameCore2fluent-community/app/Services/Libs/FileSystem.php:26
fluent_community/video_upload_max_file_sizeCore1fluent-community/Modules/Integrations/FluentPlayer/Http/Controllers/MediaController.php:55
fluent_community/video_upload_max_file_unitCore1fluent-community/Modules/Integrations/FluentPlayer/Http/Controllers/MediaController.php:54

fluent_community/generated_upload_file_name

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Generated Upload File Name hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Services/Libs/FileSystem.php:158$file['name'] (array)
$originalName (mixed)
$file (mixed)

Example

php
add_filter('fluent_community/generated_upload_file_name', function ($file, $originalName, $file_3) {
    return $file;
}, 10, 3);

fluent_community/handle_remove_bulk_media

  • Type: filter
  • Edition: Core
  • Call sites: 2
  • When it fires: Handle Remove Bulk Media hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Hooks/Handlers/CleanupHandler.php:138false (mixed)
$media (mixed)
Corefluent-community/app/Hooks/Handlers/CleanupHandler.php:171false (mixed)
$media (mixed)

Example

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

fluent_community/media_public_url_{this}

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Media Public URL {This} hook emitted from the current call site.

Call Sites

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

Example

php
add_filter('fluent_community/media_public_url_{this}', function ($media_url, $param2) {
    return $media_url;
}, 10, 2);

fluent_community/media_signed_public_url_{this}

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Media Signed Public URL {This} hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Models/Media.php:122$this->media_url (mixed)
$this (mixed)
$time (mixed)

Example

php
add_filter('fluent_community/media_signed_public_url_{this}', function ($media_url, $param2, $time) {
    return $media_url;
}, 10, 3);

fluent_community/media_upload_data

  • Type: filter
  • Edition: Core + PRO
  • Call sites: 4
  • When it fires: Media Upload Data hook emitted from the current call site.

Call Sites

EditionSourceParameters
PROfluent-community-pro/app/Modules/DocumentLibrary/Http/DocumentController.php:253$mediaData (mixed)
$file (mixed)
Corefluent-community/app/Http/Controllers/FeedsController.php:1073$mediaData (mixed)
$file (mixed)
Corefluent-community/app/Services/UploadHelper.php:182$mediaData (mixed)
$file (mixed)
Corefluent-community/Modules/Integrations/FluentPlayer/Http/Controllers/MediaController.php:93$mediaData (mixed)
$file (mixed)

Example

php
add_filter('fluent_community/media_upload_data', function ($mediaData, $file) {
    return $mediaData;
}, 10, 2);

fluent_community/media_upload_max_file_size

  • Type: filter
  • Edition: Core
  • Call sites: 2
  • When it fires: Media Upload Max File Size hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/FeedsController.php:939100 (mixed)
Corefluent-community/app/Services/UploadHelper.php:40$options['max_size'] (array)

Example

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

fluent_community/media_upload_max_file_unit

  • Type: filter
  • Edition: Core
  • Call sites: 2
  • When it fires: Media Upload Max File Unit hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/FeedsController.php:938'MB' (mixed)
Corefluent-community/app/Services/UploadHelper.php:39$options['size_unit'] (array)

Example

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

fluent_community/media_upload_max_width_{context}

  • Type: filter
  • Edition: Core
  • Call sites: 2
  • When it fires: Media Upload Max Width {Context} hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/FeedsController.php:978$maxWidth (mixed)
$file (mixed)
Corefluent-community/app/Services/UploadHelper.php:87$maxWidth (mixed)
$file (mixed)

Example

php
add_filter('fluent_community/media_upload_max_width_{context}', function ($maxWidth, $file) {
    return $maxWidth;
}, 10, 2);

fluent_community/media_upload_resize

  • Type: filter
  • Edition: Core
  • Call sites: 2
  • When it fires: Media Upload Resize hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Http/Controllers/FeedsController.php:975$willResize (mixed)
$file (mixed)
Corefluent-community/app/Services/UploadHelper.php:84$willResize (mixed)
$file (mixed)

Example

php
add_filter('fluent_community/media_upload_resize', function ($willResize, $file) {
    return $willResize;
}, 10, 2);

fluent_community/rate_limit/media_upload_per_minute

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

Call Sites

EditionSourceParameters
Corefluent-community/app/Hooks/Handlers/RateLimitHandler.php:6710 (mixed)

Example

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

fluent_community/upload_folder_name

  • Type: filter
  • Edition: Core
  • Call sites: 2
  • When it fires: Upload Folder Name hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/app/Services/Libs/FileSystem.php:26FLUENT_COMMUNITY_UPLOAD_DIR (mixed)
Corefluent-community/app/Services/Libs/FileSystem.php:125FLUENT_COMMUNITY_UPLOAD_DIR (mixed)

Example

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

fluent_community/video_upload_max_file_size

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Video Upload Max File Size hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Integrations/FluentPlayer/Http/Controllers/MediaController.php:55300 (mixed)

Example

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

fluent_community/video_upload_max_file_unit

  • Type: filter
  • Edition: Core
  • Call sites: 1
  • When it fires: Video Upload Max File Unit hook emitted from the current call site.

Call Sites

EditionSourceParameters
Corefluent-community/Modules/Integrations/FluentPlayer/Http/Controllers/MediaController.php:54'MB' (mixed)

Example

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

FluentCommunity developer documentation