wpseek.com
WordPress开发者和主题制作者的搜索引擎



post_embed_url › WordPress过滤钩子

Since4.4.0
已弃用n/a
apply_filters( 'post_embed_url', $embed_url, $post )
参数: (2)
  • (string) $embed_url The post embed URL.
    Required: Yes
  • (WP_Post) $post The corresponding post object.
    Required: Yes
定义在:
文档:

Filters the URL to embed a specific post.





源码

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