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

Parameters

Associative

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


Changelog

Since: Jetpack 2.8.0


Have a question about this article?

Comments are currently closed for this article, but rest assured we're still here to help! Send us a message and we'll get back to you.

Contact us