pre_user_query WordPress Action Hook

The pre_user_query hook is an action hook that is called before a user query is executed. This hook can be used to modify the query parameters before the query is run.

do_action_ref_array( 'pre_user_query', WP_User_Query $query ) #

Fires after the WP_User_Query has been parsed, and before the query is executed.


Description

The passed WP_User_Query object contains SQL parts formed from parsing the given query.


Top ↑

Parameters

$query

(WP_User_Query)Current instance of WP_User_Query (passed by reference).


Top ↑

Source

File: wp-includes/class-wp-user-query.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.