WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/is local attachment

Description

Check if the attachment URI is local one and is really an attachment.

Usage

<?php is_local_attachment$url ?>

Parameters

$url
(string) (required) URL to check
Default: None

Return Values

(boolean) 
True on success, false on failure.

Examples

Notes

Change Log

Since: 2.0.0

Source File

is_local_attachment() is located in wp-includes/post.php.

Related

See also index of Function Reference and index of Template Tags.