Function Reference/is local attachment
(Add your language)
Check if the attachment URI is local one and is really an attachment.
<?php is_local_attachment( $url ) ?>
- (string) (required) URL to check
- Default: None
- True on success, false on failure.
is_local_attachment() is located in