embed_thumbnail_id

过滤钩子


apply_filters( 'embed_thumbnail_id', $thumbnail_id )
参数
  • (int|false)
    $thumbnail_id
    Attachment ID, or false if there is none.
    Required:
定义位置
  • wp-includes/theme-compat/embed-content.php
    , line 32
引入
4.9.0
弃用

Filters the thumbnail image ID for use in the embed template.

$thumbnail_id = apply_filters( 'embed_thumbnail_id', $thumbnail_id );