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 |
---|---|
755 | * |
756 | * Return a non-null value to bypass WordPress' default term queries. |
757 | * |
758 | * @since 5.3.0 |
759 | * |
760 | * @param array|null $terms Return an array of term data to short-circuit WP's term query, |
761 | * or null to allow WP queries to run normally. |
762 | * @param WP_Term_Query $query The WP_Term_Query instance, passed by reference. |
763 | */ |
764 | $this->terms = apply_filters_ref_array( 'terms_pre_query', array( $this->terms, &$this ) ); |
765 |
|
766 | if ( null !== $this->terms ) { |
767 | return $this->terms; |
768 | } |
769 |
|
770 | // $args can be anything. Only use the args defined in defaults to compute the key. |
771 | $cache_args = wp_array_slice_assoc( $args, array_keys( $this->query_var_defaults ) ); |
772 |
|
773 | unset( $cache_args['pad_counts'], $cache_args['update_term_meta_cache'] ); |