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



attachment_url_to_postid › WordPress过滤钩子

Since4.2.0
已弃用n/a
› apply_filters( 'attachment_url_to_postid', $post_id, $url )
参数: (2)
  • () post_id The post_id (if any) found by the function.
    Required: Yes
  • () url The URL being looked up.
    Required: Yes
定义在:
文档:

Filters an attachment ID found by URL.





源码

return (int) apply_filters( 'attachment_url_to_postid', $post_id, $url );