Documentation

Plugin filters

WordPress video importer plugin YouTube Hub plugin filters.

  • cbc allow auto import

    Description Filter that can prevent all automatic imports from running. Parameters $allow (boolean)(required) Allow automatic imports to run (true) or prevent them (false). Default:true…

  • cbc allow single video import

    Description By default, when trying to import a new single video, the plugin will display a simple form asking for the video ID. If…

  • cbc allow video import

    Description Using this filter you can prevent a certain video from being imported into a WordPress post. Parameters $allow (boolean)(required) Allow video to be…

  • cbc allow youtube server key update

    Description Allow (true) or deny (false) updating the YouTube API server key when the settings are saved. Parameters $allow (bool)(required) Whether the server key…

  • cbc apply filename suffix

    Description When video image importing into WordPress Media Gallery is enabled from plugin settings, the plugin will automatically import the video image and, by…

  • cbc automatic import message

    Description Filter the countdown/status message shown for a playlist’s automatic import. Parameters $message (string)(required) The import status message (HTML). Default:None Example add_filter( 'cbc_automatic_import_message', function(…

  • cbc automatic import start on hook

    Description Filter the WordPress hook on which the automatic import is started. Used internally to move the importer to a different hook (for example…

  • cbc check video status

    Description If video status checking is allowed from plugin settings, the plugin will query YouTube API at most once every 24h in order to…

  • 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)…

  • cbc compatibility dislikes meta

    Description When importing videos for compatible WordPress theme, use this filter to specify the custom field name where the plugin should store the number…

  • cbc compatibility duration meta

    Description When importing videos for compatible WordPress theme, use this filter to specify the custom field name where the plugin should store the video…

  • 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…

  • cbc compatibility human duration meta

    Description When importing videos for compatible WordPress theme, use this filter to specify the custom field name where the plugin should store the formatted…

  • 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…

  • cbc compatibility likes meta

    Description When importing videos for compatible WordPress theme, use this filter to specify the custom field name where the plugin should store the number…

  • 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…

  • cbc compatibility post type

    Description Used with filter cbc compatibility to specify the post type used by the currently active WordPress theme for video posts. This filter is…

  • cbc compatibility tag taxonomy

    Description Filter used to specify the tag taxonomy that the tags retrieved from YouTube API will by imported as. This filter is part of…

  • 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…

  • 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…

  • 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…

  • 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…

  • cbc compatibility views meta

    Description When importing videos for compatible WordPress theme, use this filter to specify the custom field name where the plugin should store the number…

  • cbc cpt with front

    Description Set the with_front rewrite option for the video custom post type permalinks. Parameters $with_front (bool)(required) Whether the permalink should be prefixed with the…

  • cbc embed after

    Description Filter HTML output rendered immediately after the video player. Replaces the deprecated cbc_after_video_embed filter. Parameters $after_video (string)(required) HTML to output after the player.…

  • cbc embed allowed

    Description When video embedding is done by the plugin, this filter gives you the choice to prevent videos from being embedded automatically. Parameters $allow…

  • cbc embed before

    Description Filter HTML output rendered immediately before the video player. Replaces the deprecated cbc_before_video_embed filter. Parameters $before_video (string)(required) HTML to output before the player.…

  • cbc embed css class

    Description Filter the array of extra CSS classes added to the video player container, for styling the embed. Parameters $classes (array)(required) Array of CSS…

  • cbc embed html container

    Description Filter the full HTML of the video container, allowing third-party code to modify the markup of the embedded player. Parameters $video_container (string)(required) The…

  • cbc hidden server key field message

    Description Filter the message shown in place of the server-key field when it is hidden (see cbc_show_server_key_form_field). Parameters $message (string)(required) The message (HTML) shown…

  • cbc image import timeout

    Description Filter the HTTP timeout (in seconds) used when downloading a video thumbnail during image import. Parameters $timeout (int)(required) Timeout in seconds. Default:15 Example…

  • cbc js embed

    Description Choose how the video is embedded: return true to use the plugin’s JavaScript player, or false to output a plain YouTube iframe. Parameters…

  • cbc nocookie embed

    Description Force the privacy-enhanced youtube-nocookie.com domain for the embed, regardless of the per-post or global setting. Parameters $nocookie (bool)(required) Whether to use the cookieless…

  • cbc show php version warning

    Description Show (true) or hide (false) the admin notice warning that the server PHP version is not actively supported. Parameters $show (bool)(required) Whether to…

  • cbc show server key form field

    Description Show (true) or hide (false) the legacy YouTube API server-key input field on the settings page. Parameters $show (bool)(required) Whether to show the…

  • cbc tag taxonomy with front

    Description Set the with_front rewrite option for the video tag taxonomy permalinks. Parameters $with_front (bool)(required) Whether the permalink should be prefixed with the front…

  • cbc taxonomy with front

    Description Set the with_front rewrite option for the video category taxonomy permalinks. Parameters $with_front (bool)(required) Whether the permalink should be prefixed with the front…

  • cbc video description

    Description Filter on video description. Useful to modify video description globally, for all subsequent filters and actions. Parameters $description (string)(required) The video description returned…

  • cbc video embed filter priority

    Description Filter the priority used when the automatic video embed is hooked into the_content. Parameters $priority (int)(required) The the_content filter priority. Default:1 Example add_filter(…

  • cbc video post comment status

    Description Filter that allows you to change the default comment status for the current video post before inserting it into the database. Parameters $status…

  • cbc video post content

    Description Video post content filter that runs before inserting the post into the database. Parameters $post_content (string)(required) The post content that will be inserted…

  • cbc video post date

    Description Filter for the video post date that runs before the post is inserted into the database. Parameters $post_date (string)(required) Post date formatted as…

  • cbc video post embed below content

    Description Control whether the video is embedded below the post content (true) or above it (false), globally for all video posts. Parameters $below (bool)(required)…

  • cbc video post embed options

    Description Filter the player embed settings (size, autoplay, controls, aspect ratio, etc.) right before the video is rendered. Parameters $settings (array)(required) The embed/player settings…

  • cbc video post excerpt

    Description Video post excerpt filter that runs before inserting the post into the database. Parameters $post_excerpt (string)(required) The excerpt of the video post that…

  • cbc video post ping status

    Description Filter that allows you to change the default ping status for the current video post before inserting it into the database. Parameters $status…

  • cbc video post status

    Description The video post status for the post that will be inserted into the database. Please see WP Codex Post Status for more details…

  • cbc video post title

    Description Filter on post title, right before inserting the post into the database. Parameters $post_title (string)(required) The title that will be set for the…

  • cbc video status timeout

    Description By default, video status checking is done at most once every 24h. To change this 24h interval, use this filter. Parameters $interval (integer)(required)…

  • cbc video title

    Description Filter on video title. Useful to modify video title globally, for all subsequent filters and actions. Parameters $title (string)(required) The video title returned…

  • cbc youtube api request timeout

    Description Filter the HTTP timeout (in seconds) for requests made to the YouTube Data API. Parameters $timeout (int)(required) Timeout in seconds. Default:15 Example add_filter(…

Start importing in minutes

Bring your YouTube content into WordPress and let it update itself. Includes automatic updates and support.