Description
Filters an attachment ID found by URL.
Occurrences
Filename | Line Number |
---|---|
wp-includes/media.php | 5355 |
Parameters
Type | Name | Description |
---|---|---|
int|null | $post_id | The post_id (if any) found by the function. |
string | $url | The URL being looked up. |
PHP Doc
/**
* Filters an attachment ID found by URL.
*
* @since 4.2.0
*
* @param int|null $post_id The post_id (if any) found by the function.
* @param string $url The URL being looked up.
*/