Action that runs after a video is successfully imported as WordPress video post.

add_filter( 'vimeotheque\import_success', (int) $post_id, (array) $video, (array|false) $theme_compatibility, (string) $post_type )


(int) The ID of the post created on import.

(array) The video details retrieved from Vimeo. For complete reference, see the video details reference.

(array) If the video is imported as a post for a compatible WordPress theme, the array will be populated with the theme details, otherwise will have value (bool) false.

(string) The post type created for the imported video.


Was this article helpful?

Start your video site now!

Manage and coordinate your Vimeo channels, albums or videos with your WordPress website. Perfect fit for membership, portfolio, online courses or any type of video collection.

Get Vimeotheque PRO!