WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
1908 | } else if ( 'ids' == $fields || 'names' == $fields || 'slugs' == $fields ) { |
1909 | $terms = array_merge($terms, $wpdb->get_col($query)); |
1910 | } else if ( 'tt_ids' == $fields ) { |
1911 | $terms = $wpdb->get_col("SELECT tr.term_taxonomy_id FROM $wpdb->term_relationships AS tr INNER JOIN $wpdb->term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tr.object_id IN ($object_ids) AND tt.taxonomy IN ($taxonomies) $orderby $order"); |
1912 | } |
1913 |
|
1914 | if ( ! $terms ) |
1915 | $terms = array(); |
1916 |
|
1917 | return apply_filters('wp_get_object_terms', $terms, $object_ids, $taxonomies, $args); |
1918 | } |
1919 |
|
1920 | /** |
1921 | * Adds a new term to the database. Optionally marks it as an alias of an existing term. |
1922 | * |
1923 | * Error handling is assigned for the nonexistence of the $taxonomy and $term |
1924 | * parameters before inserting. If both the term id and taxonomy exist |
1925 | * previously, then an array will be returned that contains the term id and the |
1926 | * contents of what is returned. The keys of the array are 'term_id' and |