attachment_url_to_postid

Advertisement

Summery Summery

Tries to convert an attachment URL into a post ID.

Syntax Syntax

attachment_url_to_postid( string $url )

Parameters Parameters

$url

(string) (Required) The URL to resolve.

Return Return

(int) The found post ID, or 0 on failure.

Source Source

File: wp-includes/media.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
4.0.0 Introduced.

Advertisement

Leave a Reply

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