In this article

filter

classic_theme_helper_theme_compat_files

Filter theme compat files. Themes can add their own compat files here if they like. For example: add_filter( ‘classic_theme_helper_theme_compat_files’, ‘mytheme_classic_theme_helper_theme_compat_file’ ); function mytheme_classic_theme_helper_theme_compat_file( $files ) { $files[‘mytheme’] = locate_template( ‘jetpack-compat.php’ ); return $files; }

Parameters

Associative
array

array of theme compat files to load.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.