WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/is local attachment

Contents

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.