Try for free

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

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, [], []);
});