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 |
---|---|
788 | * by reference. If WP_User_Query does not perform a database query, it will not |
789 | * have enough information to generate these values itself. |
790 | * |
791 | * @since 5.1.0 |
792 | * |
793 | * @param array|null $results Return an array of user data to short-circuit WP's user query |
794 | * or null to allow WP to run its normal queries. |
795 | * @param WP_User_Query $query The WP_User_Query instance (passed by reference). |
796 | */ |
797 | $this->results = apply_filters_ref_array( 'users_pre_query', array( null, &$this ) ); |
798 |
|
799 | if ( null === $this->results ) { |
800 | $this->request = " |
801 | SELECT {$this->query_fields} |
802 | {$this->query_from} |
803 | {$this->query_where} |
804 | {$this->query_orderby} |
805 | {$this->query_limit} |
806 | "; |