Plugin filters / cbc compatibility post format

Description

When importing videos for your WordPress theme, you might want to set a different post format, other than the default “video” set by the plugin. Using this filter allows you to set any post format for videos being imported. Please note that videos already imported won’t be modified if using the filter at a later time.
This filter is part of the Third party compatibility tutorial.

Parameters

$post_format
(string)(required) The post format that should be set for future imported videos.

Default:video

Examples

Change post type to anything other than post format “video“.

Related