wphooks.info - found_users_query

found_users_query

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/class-wp-user-query.php:
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
			 * Filters SELECT FOUND_ROWS() query for the current WP_User_Query instance.
			 *
			 * @since 3.2.0
			 * @since 4.9.9 Added the `$this` parameter.
			 *
			 * @global wpdb $wpdb WordPress database abstraction object.
			 *
			 * @param string $sql         The SELECT FOUND_ROWS() query for the current WP_User_Query.
			 * @param WP_User_Query $this The current WP_User_Query instance.
			 */
			$found_users_query = apply_filters( 'found_users_query', 'SELECT FOUND_ROWS()', $this );

			$this->total_users = (int) $wpdb->get_var( $found_users_query );
		}

		if ( ! $this->results ) {
			return;
		}

		if ( 'all_with_meta' == $qv['fields'] ) {