url_to_postid


url_to_postid ( $url )

Parameters:
  • (string) $url Permalink to check.
Returns:
  • (int) Post ID, or 0 on failure.
Defined at:

Description

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

Checks are supposedly from the hosted site blog.

Related Functions

attachment_url_to_postid, format_to_post, bulk_edit_posts, write_post, get_post_field

Top Google Results

User discussions

wpseek mobile