Core Function
View Source on Trac ↗ url_to_postid()
url_to_postid( mixed $url ) Examines a URL and try to determine the post ID it represents.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $url string | Permalink to check. Required |
Return Value
(int)
Post ID, or 0 on failure.
Function Information
Since Version
1.0.0
Source File
wp-includes/rewrite.php
Advertisement