Filters whether post thumbnail can be displayed.
$show_post_thumbnailboolwp-content/themes/twentytwentyone/inc/template-functions.php:113twenty_twenty_one_can_show_post_thumbnail() * Filters whether post thumbnail can be displayed. * * @since Twenty Twenty-One 1.0 * * @param bool $show_post_thumbnail Whether to show post thumbnail. */ return apply_filters( 'twenty_twenty_one_can_show_post_thumbnail', ! post_password_required() && ! is_attachment() && has_post_thumbnail() );} /**Introduced in Twenty Twenty-One 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.