embed_oembed_html

过滤钩子


apply_filters( 'embed_oembed_html', $cache, $url, $attr, $post_ID )
参数
  • (string|false)
    $cache
    The cached HTML result, stored in post meta.
    Required:
  • (string)
    $url
    The attempted embed URL.
    Required:
  • (array)
    $attr
    An array of shortcode attributes.
    Required:
  • (int)
    $post_ID
    Post ID.
    Required:
定义位置
  • wp-includes/class-wp-embed.php
    , line 289
引入
2.9.0
弃用

过滤缓存的oEmbed HTML。

return apply_filters( 'embed_oembed_html', $cache, $url, $attr, $post_ID );