Skip to content

Commit 7170a0b

Browse files
Twenty Seventeen: Document the twentyseventeen_should_show_featured_image filter.
Follow-up to [58206]. Props pmbaldha, kishanjasani, mukesh27, sabernhardt, SergeyBiryukov. Fixes #63644. git-svn-id: https://develop.svn.wordpress.org/trunk@60418 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f1d5beb commit 7170a0b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/wp-content/themes/twentyseventeen/functions.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,16 @@ function wp_get_list_item_separator() {
708708
*/
709709
function 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
}
713723

0 commit comments

Comments
 (0)