pre_get_users

pre_get_users

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-5.5.3

do_action('pre_get_users') is found 1 times:

  • /wp-includes/class-wp-user-query.php line 230
    		 *
    		 * @param WP_User_Query $this The current WP_User_Query instance,
    		 *                            passed by reference.
    		 */
    		do_action( 'pre_get_users', $this );
    
    		// Ensure that query vars are filled after 'pre_get_users'.
    		$qv =& $this->query_vars;
    		$qv = $this->fill_query_vars( $qv );
    
    		if ( is_array( $qv['fields'] ) ) {
    

See this hook used in plugins: