is_attachment( int|string|array|object $attachment = '' )

Is the query for an existing attachment page?


25 related functions found for: is_attachment

Top ↑

Related terms found for this post

TaxonomyTerms
wp-parser-related-wordsattach, attachment, attachments, exist, is, post-typ, post-type, query-php, wp-includes
wp-parser-packageQuery, WordPress
wp-parser-source-filewp-includes/query.php

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • attach
  • attachment
  • attachments
  • exist
  • is
  • post-typ
  • post-type
  • Query
  • query-php
  • wp-includes
  • wp-includes/query.php
  • query

Top ↑

Description Description


Top ↑

Parameters Parameters

$attachment

(int|string|array|object) (Optional) Attachment ID, title, slug, or array of such.

Default value: ''


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: wp-includes/query.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.