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 |
---|---|
769 | } |
770 |
|
771 | $selects = array(); |
772 | if ( 'all' == $fields ) |
773 | $selects = array('t.*', 'tt.*'); |
774 | else if ( 'ids' == $fields ) |
775 | $selects = array('t.term_id', 'tt.parent', 'tt.count'); |
776 | else if ( 'names' == $fields ) |
777 | $selects = array('t.term_id', 'tt.parent', 'tt.count', 't.name'); |
778 | $select_this = implode(', ', apply_filters( 'get_terms_fields', $selects, $args )); |
779 |
|
780 | $query = "SELECT $select_this FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ($in_taxonomies) $where ORDER BY $orderby $order $limit"; |
781 |
|
782 | $terms = $wpdb->get_results($query); |
783 | if ( 'all' == $fields ) { |
784 | update_term_cache($terms); |
785 | } |
786 |
|
787 | if ( empty($terms) ) { |