apply_filters( 'attachment_url_to_postid', int|null $post_id, string $url )

Filters an attachment id found by URL.


Parameters

$post_id

The post_id (if any) found by the function.

$url

The URL being looked up.


Source

File: wp-includes/media.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.2.0 Introduced.