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 |
|---|---|
| 2052 | } else if ( 'ids' == $fields || 'names' == $fields || 'slugs' == $fields ) { |
| 2053 | $terms = array_merge($terms, $wpdb->get_col($query)); |
| 2054 | } else if ( 'tt_ids' == $fields ) { |
| 2055 | $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"); |
| 2056 | } |
| 2057 | |
| 2058 | if ( ! $terms ) |
| 2059 | $terms = array(); |
| 2060 | |
| 2061 | return apply_filters('wp_get_object_terms', $terms, $object_ids, $taxonomies, $args); |
| 2062 | } |
| 2063 | |
| 2064 | /** |
| 2065 | * Add a new term to the database. |
| 2066 | * |
| 2067 | * A non-existent term is inserted in the following sequence: |
| 2068 | * 1. The term is added to the term table, then related to the taxonomy. |
| 2069 | * 2. If everything is correct, several actions are fired. |
| 2070 | * 3. The 'term_id_filter' is evaluated. |