the_sites WordPress Filter Hook

The the_sites hook is one of the most important hooks in WordPress. It allows you to add, remove, or modify any of the default sites that are displayed in the WordPress admin area. This hook is also used by many plugins and themes to add their own custom sites.

apply_filters_ref_array( 'the_sites', WP_Site[] $_sites, WP_Site_Query $query ) #

Filters the site query results.


Parameters

$_sites

(WP_Site[])An array of WP_Site objects.

$query

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


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.6.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.