Skip to content
Media CloudDocs
Vision Filters and Actions
On this page

Vision Filters and Actions

Filters

1 min read·6 tags

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

Register any additional vision drivers. This action is only called with the paid version.

add_action('media-cloud/vision/register-drivers', function() {
  VisionManager::registerDriver('my-vision-driver', 'My Vision Driver', MyNamespace\MyVisionDriver::class, [], []);
});

Need a hand with this guide?

Send support the exact step you’re stuck on and we’ll help you finish the setup.

Contact support
Start typing to search the docs

Escto close·⌘Kto open

View all results →