WPDev.one
Core Function
View Source on Trac ↗

is_category()

is_category( mixed $category = '' )

Determines whether the query is for an existing category archive page.

Parameters 1 required

Name / Type Description
mixed

(int | string | int[] | string[]) $category Optional. Category ID, name, slug, or array of such to check against. Default empty.

Required

Return Value

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

Function Information

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