wp-content/themes/twentynineteen/inc/helper-functions.php:13Determines if post thumbnail can be displayed.
One hook fires while twentynineteen_can_show_post_thumbnail() runs, in this order:
Filters whether to show post thumbnail.
function twentynineteen_can_show_post_thumbnail() { $show_post_thumbnail = ! post_password_required() && ! is_attachment() && has_post_thumbnail(); /** * Filters whether to show post thumbnail. * * @since Twenty Nineteen 1.0 * * @param bool $show_post_thumbnail Whether to show post thumbnail. */ return apply_filters( 'twentynineteen_can_show_post_thumbnail', $show_post_thumbnail );}Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentynineteen/inc/helper-functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.