• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / modules/theme-tools/content-options/featured-images-fallback.php


Lines:

1 to 14 of 14
<?php
/* function jetpack_featured_images_fallback_get_image() – Get one image from a specified post in the following order:
Featured Image then first image from the_content HTML
and filter the post_thumbnail_html */
add_filter( 'post_thumbnail_html', 'jetpack_featured_images_fallback_get_image', 10, 5 );

/* function jetpack_featured_images_fallback_get_image_src() – Get URL of one image from a specified post in the following order:
Featured Image then first image from the_content HTML */

/* function jetpack_has_featured_image() – Check if post has an image attached, including a fallback. */

/* function jetpack_featured_images_post_class() – Adds custom class to the array of post classes. */
add_filter( 'post_class', 'jetpack_featured_images_post_class', 10, 3 );
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: modules/theme-tools/content-options/featured-images-fallback.php
      Plugin ref: Jetpack
      Version: 7.9.1
      Deprecated?: No
      API Letters: C,M,O,T

      Related

      Published: 27 November 2019 | Last updated: 27 November 2019

      Primary Sidebar

      Information

      File name: modules/theme-tools/content-options/featured-images-fallback.php
      Plugin ref: Jetpack
      Version: 7.9.1
      Deprecated?: No
      API Letters: C,M,O,T

      modules/theme-tools/content-options

      Footer

      Jetpack a2z Jetpack a2z
      Jetpack a2z
      WordPress 5.3
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  jetpack.wp-a2z.org
      © Copyright Jetpack a2z 2014-2019. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites