WPDev.one

is_term()

is_term( mixed $term, mixed $taxonomy = '', mixed $parent = 0 )

Check if Term exists.

Parameters 1 required

Name / Type Description
(int

| string) $term The term to check

Required
$taxonomy
string

The taxonomy name to use

$parent
int

ID of parent term under which to confine the exists search.

Return Value

(mixed)
Get the term ID or term object, if exists.

Function Information

Since Version
2.3.0
Source File
wp-includes/deprecated.php
Advertisement