
创建和测试WordPress可访问性
apply_filters( 'twentynineteen_can_show_post_thumbnail', ! post_password_required()
twentynineteen_can_show_post_thumbnail: 这是一个过滤钩子,允许开发者决定是否应该为一个文章显示一个文章缩略图。
这个钩子在最新版本的WordPress(6.0)中没有出现。不要使用它。它已被弃用。
return apply_filters( 'twentynineteen_can_show_post_thumbnail', ! post_password_required() && ! is_attachment() && has_post_thumbnail() );