Description
Filter the post types whose video posts are updated by the Update videos tool. Default: the plugin’s video post type and post. Available since Video Hub 2.3.0.
Parameters
- $post_types
- (string[])(required) Post types.
Examples
Also update the videos imported as posts of a theme’s custom post type.
add_filter( 'cbc_video_update_post_types', function( $post_types ) {
$post_types[] = 'my_theme_video';
return $post_types;
} );