query.term_exists

/ Database / query.term_exists

 

Title : query.term_exists
Purpose : Check if a given term exists and return the term ID, a term array, or 0 (false) if the term doesn’t exist
Syntax :
Input Parameters : Parameters supported : term, taxonomy
Return Value : It returns: Returns 0 or NULL if the term does not exist. Returns the term ID if no taxonomy was specified and the term exists. Returns an array if the parent exists
Example 1 :
Code :
Output : Returns the term ID
Description : Check if a given term exists and return the term ID, a term array, or 0 (false) if the term doesn’t exist

Parameters supported : term, taxonomy

It returns: Returns 0 or NULL if the term does not exist. Returns the term ID if no taxonomy was specified and the term exists. Returns an array if the parent exists.

Categories
Most Popular

Leave a Reply

Your email address will not be published. Required fields are marked *