Plugin filters / 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.

/**
* Change theme name in plugin pages
* @return string - theme name
*/
function yt_plugin_change_theme_name(){
return 'A custom theme name';
}
add_filter( 'cbc_compatibility_theme_name', 'yt_plugin_change_theme_name' );
view raw functions.php hosted with ❤ by GitHub

Related