url_to_postid

Advertisement

Summery Summery

Examine a URL and try to determine the post ID it represents.

Syntax Syntax

url_to_postid( string $url )

Description Description

Checks are supposedly from the hosted site blog.

Parameters Parameters

$url

(string) (Required) Permalink to check.

Return Return

(int) Post ID, or 0 on failure.

Source Source

File: wp-includes/rewrite.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Advertisement

Leave a Reply

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