query.term_exists

/ Database / query.term_exists

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 *