term_is_ancestor_of Wordpress function


Description:

Check if a term is an ancestor of another term.


Syntax:


Arguments:

(int|object) $term1 ID or object to check if this is the parent term.
(int|object) $term2 The child term.
(string) $taxonomy Taxonomy name that $term1 and $term2 belong to.


Return Type:

(bool) Whether $term2 is child of $term1


Define At:

wp-includes/taxonomy.php


Wordpress Reference URL:

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


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