wphooks.info - parse_site_query

parse_site_query

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/class-wp-site-query.php:
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
		$this->query_vars = wp_parse_args( $query, $this->query_var_defaults );

		/**
		 * Fires after the site query vars have been parsed.
		 *
		 * @since 4.6.0
		 *
		 * @param WP_Site_Query $this The WP_Site_Query instance (passed by reference).
		 */
		do_action_ref_array( 'parse_site_query', array( &$this ) );
	}

	/**
	 * Sets up the WordPress query for retrieving sites.
	 *
	 * @since 4.6.0
	 *
	 * @param string|array $query Array or URL query string of parameters.
	 * @return array|int List of WP_Site objects, a list of site ids when 'fields' is set to 'ids',