get_term Wordpress function


Description:

Get all Term data from database by Term ID.


Syntax:


Arguments:

(int|object) $term If integer, will get from database. If object will apply filters and return $term.
(string) $taxonomy Taxonomy name that $term is part of.
(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|null|WP_Error) Term Row from database. Will return null if $term is empty. If taxonomy does not exist then WP_Error will be returned.


Define At:

wp-includes/taxonomy.php


Wordpress Reference URL:

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


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