6 Articles tagged with Filters
-
- Advanced Usage
- /
- Hooks
Media Cloud Plugin
Actions media-cloud/tools/register-tools add_action('media-cloud/tools/register-tools', function() { ToolsManager::registerTool('my-tool', []); }); …
-
- Advanced Usage
- /
- Hooks
Cloud Storage Filters and Actions
Filters and actions that plug into the cloud storage processes like uploads, migrations, etc.
-
- Advanced Usage
- /
- Hooks
imgix Filters and Actions
Filters media-cloud/imgix/enabled Returns if the imgix, specifically, is enabled. $enabled = apply_filters('media-cloud/imgix/enabled', false); media-cloud/imgix/alternative-formats/enabled Returns if alternative formats are enabled for imgix. $enabled = apply_filters('media-cloud/imgix/alternative-formats/enabled', false); media-cloud/imgix/detect-faces Returns if imgix face detection is enabled. $enabled = apply_filters('media-cloud/imgix/detect-faces', false); media-cloud/imgix/render-pdf Returns if imgix PDF rendering is …
-
- Advanced Usage
- /
- Hooks
Direct Upload Filters and Actions
Filters media-cloud/direct-uploads/max-uploads Overrides the setting for the maximum number of uploads. add_filter('media-cloud/direct-uploads/max-uploads', function($maxUploads) { return min(4, $maxUploads); }); Actions media-cloud/direct-uploads/process-batch After files have been uploaded with Direct Upload, this action is called with the attachment IDs so that other tools can process the attachments. add_action('media-cloud/direct-uploads/process-batch', function($postIds) …
-
- Advanced Usage
- /
- Hooks
Video Encoding Filters and Actions
Filters and actions for hooking into Media Cloud's video encoding process.
-
- Advanced Usage
- /
- Hooks
Vision Filters and Actions
Filters media-cloud/vision/detect-faces Returns if Vision is enabled and set to detect faces. $detectingFaces = apply_filters('media-cloud/vision/detect-faces', false); media-cloud/vision/process-meta Processes an attachmentâs metadata with Vision. If Vision is setup to process in background, this processing will then take place later. $attachmentMeta = apply_filters('media-cloud/vision/process-meta', $attachmentMeta, $attachmentId); Actions media-cloud/vision/register-drivers …