apply_filters ( 'jetpack_theme_compat_files', array Associative )

Filter theme compat files.<p>Themes can add their own compat files here if they like. For example:</p> <p>add_filter( 'jetpack_theme_compat_files', 'mytheme_jetpack_compat_file' ); function mytheme_jetpack_compat_file( $files ) {</p> <pre><code>$files['mytheme'] = locate_template( 'jetpack-compat.php' ); return $files;</code></pre> <p>}</p>

Source file: modules/theme-tools.php

View in GitHub



(array) Associative array of theme compat files to load.


Since: Jetpack 2.8.0

Have a question?

Comments are closed for this article, but we're still here to help! Visit the support forum and we'll be happy to answer any questions.

View support forum