public static featured_images_enabled ( ) : string | ||
return | string | ( '1' | '0' ) |
public static function featured_images_enabled()
{
_deprecated_function(__METHOD__, 'jetpack-4.2');
return current_theme_supports('post-thumbnails') ? '1' : '0';
}
public static function refresh_theme_data() { /** * Fires whenever a theme change is made. * * @since 3.8.1 * * @param string featured_images_enabled * @param boolean Whether featured images are enabled or not */ do_action('add_option_jetpack_featured_images_enabled', 'jetpack_featured_images_enabled', Jetpack::featured_images_enabled()); }