term_exists Wordpress function


Description:

Check if Term exists.


Syntax:


Arguments:

(int|string) $term The term to check
(string) $taxonomy The taxonomy name to use
(int) $parent ID of parent term under which to confine the exists search.


Return Type:

(mixed) Returns 0 if the term does not exist. Returns the term ID if no taxonomy is specified and the term ID exists. Returns an array of the term ID and the taxonomy if the pairing exists.


Define At:

wp-includes/taxonomy.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/term_exists


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×