wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_attachment_is_image › WordPress Function

Da2.1.0
Deprecaton/a
wp_attachment_is_image ( $post = null )
Parametri:
  • (int|WP_Post) $post Optional. Attachment ID or object. Default is global $post.
    Richiesto: No
    Default: null
Ritorna:
  • (bool) Whether the attachment is an image.
Definito a:
Codex:
ChangeLog:
  • 4.2.0

Determines whether an attachment is an image.

For more information on this and similar theme functions, check out the {@link Conditional Tags} article in the Theme Developer Handbook.


Sorgenti

function wp_attachment_is_image( $post = null ) {
	return wp_attachment_is( 'image', $post );
}