attachment_url_to_postid


attachment_url_to_postid ( $url )

Parameters:
  • (string) $url The URL to resolve.
Returns:
  • (int) The found post ID, or 0 on failure.
Defined at:

Description

Tries to convert an attachment URL into a post ID.

Related Functions

url_to_postid, get_attachment_fields_to_edit, image_attachment_fields_to_edit, image_attachment_fields_to_save, wp_get_attachment_url

Top Google Results

User discussions

wpseek mobile