Filters an attachment ID found by URL.
Parameters
$post_id
int|null- The post_id (if any) found by the function.
$url
string- The URL being looked up.
Source
return (int) apply_filters( 'attachment_url_to_postid', $post_id, $url );
Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.