attachment_url_to_postid

Advertisement

Summery Summery

Filters an attachment id found by URL.

Syntax Syntax

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

Parameters Parameters

$post_id

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

$url

(string) The URL being looked up.

Source Source

File: wp-includes/media.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.