get_term_by Wordpress function


Description:

Get all Term data from database by Term field and data.


Syntax:


Arguments:

(string) $field Either 'slug', 'name', or 'id'
(string|int) $value Search for this term value
(string) $taxonomy Taxonomy Name
(string) $output Constant OBJECT, ARRAY_A, or ARRAY_N
(string) $filter Optional, default is raw or no WordPress defined filter will applied.


Return Type:

(mixed) Term Row from database. Will return false if $taxonomy does not exist or $term was not found.


Define At:

wp-includes/taxonomy.php


Wordpress Reference URL:

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


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