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

Filters an attachment id found by URL.

Description Description

Parameters Parameters


(int|null) The post_id (if any) found by the function.


(string) The URL being looked up.

Top ↑

Source Source

File: wp-includes/media.php

View on Trac

Top ↑

Changelog Changelog

Version Description
4.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.