post_embed_url

过滤钩子


apply_filters( 'post_embed_url', $embed_url, $post )
参数
  • (string)
    $embed_url
    The post embed URL.
    Required:
  • (WP_Post)
    $post
    The corresponding post object.
    Required:
定义位置
  • wp-includes/embed.php
    , line 429
引入
4.4.0
弃用

Filters the URL to embed a specific post.

return sanitize_url( apply_filters( 'post_embed_url', $embed_url, $post ) );