wppaste
WordPress

apply_filters( 'twentyseventeen_should_show_featured_image', bool $show_featured_image )

Since
Twenty Seventeen 3.7
Filters whether to show the Twenty Seventeen featured image below the header.

Description

By default, the image is displayed on single posts and pages, unless the page is the front page.

Compatibility

WordPress
since Twenty Seventeen 3.7
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

Where this hook fires · 1

  • wp-content/themes/twentyseventeen/functions.php:729twentyseventeen_should_show_featured_image()

Source code

	 * By default, the image is displayed on single posts and pages, unless the page is the front page.	 *	 * @since Twenty Seventeen 3.7	 *	 * @param bool $show_featured_image Whether to display the featured image below the header.	 */	return apply_filters( 'twentyseventeen_should_show_featured_image', $show_featured_image );} /** * Implement the Custom Header feature. */require get_parent_theme_file_path( '/inc/custom-header.php' );

Changelog

Introduced in Twenty Seventeen 3.7. One change between 6.7.7 and 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

6.9.7
Parameter $show_featured_image added.verified against source
Twenty Seventeen 3.7
Twenty Seventeen 3.7from the docblock

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.