Un motore di ricerca WordPress per sviluppatori e autori di temi



attachment_url_to_postid ›

Da4.2.0
Deprecaton/a
apply_filters( 'attachment_url_to_postid', $post_id, $url )
Parametri: (2)
  • (int|null) $post_id The post_id (if any) found by the function.
    Richiesto:
  • (string) $url The URL being looked up.
    Richiesto:
Definito a:
Codex:

Filters an attachment id found by URL.





Sorgenti

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