is_local_attachment


is_local_attachment ( $url )

Parameters:
  • (string) url URL to check
Returns:
  • (bool) True on success, false on failure.
Defined at:

Description

Determines whether an attachment URI is local and really an attachment.For more information on this and similar theme functions, check out the {@link Conditional Tags} article in the Theme Developer Handbook.

Related Functions

is_attachment, is_locale_switched, wp_ajax_upload_attachment, wp_delete_attachment, wp_count_attachments

Top Google Results

User discussions

wpseek mobile