Uma área de pesquisa sobre o WordPress para devs e autores do tema



attachment_url_to_postid ›

Desde4.2.0
Obsoleton/a
apply_filters( 'attachment_url_to_postid', $post_id, $url )
Parâmetros: (2)
  • (int|null) $post_id The post_id (if any) found by the function.
    Required: Yes
  • (string) $url The URL being looked up.
    Required: Yes
Definido em:
Codex:

Filters an attachment id found by URL.





Fonte

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