cbc compatibility theme url

Description

When making your WordPress theme compatible with the plugin, use this filter to pass to the plugin the theme URL that you want to see displayed into the plugin pages. By default, the plugin will use your currently active theme URL.
This filter is part of the Third party compatibility tutorial.

Parameters

$url
(string)(required) Theme URL.

Default:Currently active theme URL.

Examples

cbc compatibility theme name

Description

When making your WordPress theme compatible with the plugin, use this filter to pass to the plugin the theme name that you want to see displayed in your WordPress video importing screens.
This filter is part of the Third party compatibility tutorial.

Parameters

$theme_name
(string)(required) The theme name that you want to see displayed in plugin video importing screens.

Default:Current active theme name

Examples

Change displayed theme name to anything you like. By default, the plugin will display your active theme name.

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“.

cbc compatibility image meta

Description

When importing videos for your WordPress theme, your theme might ask for the video image/banner URL. Using this filter will automatically fill the custom field passed to the plugin with the video image URL when importing a new video.
This filter is part of the Third party compatibility tutorial.

Parameters

$field_name
(string)(required) The field name where the plugin should store the video image URL.

Default:false

Examples

Fill the video image URL into the given custom field name when importing new videos.

cbc compatibility embed meta

Description

When importing a new video for your WordPress theme, if the theme requires a certain custom field to be filled automatically, use this filter to pass the field name to the plugin. This filter is part of the Third party compatibility tutorial.

Parameters

$field_name
(string)(required) The custom field name where the plugin should store the embed code when importing a new video.

Default:false

Examples

Tell the plugin to automatically fill embed code into the given custom field when importing new videos.

cbc compatibility url meta

Description

Use this filter to set a custom field with the video URL when importing new videos for your WordPress theme and your theme requires the video URL to be filled. This filter is part of the Third party compatibility tutorial.

Parameters

$field_name
(string)(required) The post custom field name where the video URL should be stored for your theme.

Default:false

Examples

Automatically enter video URL into specified custom field when creating a new video post.

cbc compatibility taxonomy

Description

Used to specify the taxonomy under which the theme creates video posts. Please note that if your theme uses regular post type post to import videos, there’s no need to specify the taxonomy category because the plugin will fill categories automatically.
This filter is part of the Third party compatibility tutorial.

Parameters

$taxonomy
(string)(required) The post type category taxonomy.

Default:false

Examples

Set post type category taxonomy.

cbc compatibility

Description

Declare that current WP theme is compatible with the plugin. This filter is part of the Third party compatibility tutorial.

Parameters

$is_compatible
(boolean)(required) Theme is compatible (true) or is not (false).

Default:false

Examples

Declare WordPress theme as compatible with the plugin.