embed_thumbnail_image_size
apply_filters( ’embed_thumbnail_image_size’, string $image_size , int $thumbnail_id )
过滤钩子:过滤嵌入模板中使用的缩略图大小。
Filter Hook: Filters the thumbnail image size for use in the embed template.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$image_size | (string) | 缩略图大小。 |
$thumbnail_id | (int) | 附件ID。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.5.0 | wp-includes/theme-compat/embed-content.php:59 | 0 | 0 |
embed_thumbnail_image_size 为WP2原创文章,链接:https://www.wp2.cn/hook/embed_thumbnail_image_size/