vimeotheque\import_success

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 )

Parameters

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

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

$theme_import
(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.

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

Usage

Was this article helpful?
YesNo

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!