WPDev.one
Core Function
View Source on Trac ↗

is_post_type_archive()

is_post_type_archive( mixed $post_types = '' )

Determines whether the query is for an existing post type archive page.

Parameters 1 required

Name / Type Description
mixed

(string | string[]) $post_types Optional. Post type or array of posts types to check against. Default empty.

Required

Return Value

(bool)
Whether the query is for an existing post type archive page.

Function Information

Since Version
3.1.0
Source File
wp-includes/query.php
Advertisement