Video SEO plugin API
The Video SEO plugin has an API to modify aspects of both its input and output.
Output
wpseo_video_type_details
Argument: $vid
(array)
This filters the output of the video embed recognition functionality. The $vid
array contains, at a minimum, either a player_loc
or content_loc
, a thumbnail_loc
and type
. You’ll need to know the type to filter the output, but you could use this filter to, for instance, add a duration
.
wpseo_video_family_friendly
Argument: $family-friendly
(bool), $ID
(int)
wpseo_video_rating
Argument: $rating
(bool), $ID
(int)
Useful for setting the rating for videos.
wpseo_video_item
Argument: $str
(bool), $ID
(int)
Allows you to add extra content to the Video XML sitemap, $str
defaults to empty.
Input
wpseo_video_index_content
Arguments: $content
(string), $vid
(array)
This filter is mainly useful if the input content needs to be modified, have stuff added, etc.