Make WordPress Core

Changeset 60418


Ignore:
Timestamp:
07/07/2025 12:10:27 AM (7 months ago)
Author:
SergeyBiryukov
Message:

Twenty Seventeen: Document the twentyseventeen_should_show_featured_image filter.

Follow-up to [58206].

Props pmbaldha, kishanjasani, mukesh27, sabernhardt, SergeyBiryukov.
Fixes #63644.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/functions.php

    r60159 r60418  
    709709function twentyseventeen_should_show_featured_image() {
    710710    $show_featured_image = ( is_single() || ( is_page() && ! twentyseventeen_is_frontpage() ) ) && has_post_thumbnail( get_queried_object_id() );
     711
     712    /**
     713     * Filters whether to show the Twenty Seventeen featured image below the header.
     714     *
     715     * By default, the image is displayed on single posts and pages, unless the page is the front page.
     716     *
     717     * @since Twenty Seventeen 3.7
     718     *
     719     * @param bool $show_featured_image Whether to display the featured image below the header.
     720     */
    711721    return apply_filters( 'twentyseventeen_should_show_featured_image', $show_featured_image );
    712722}
Note: See TracChangeset for help on using the changeset viewer.