apply_filters( 'display_site_states', array $site_states, WP_Site $site )

Filters the default site display states for items in the Sites list table.

Parameters

$site_states

(array) An array of site states. Default 'Main', 'Archived', 'Mature', 'Spam', 'Deleted'.

$site

(WP_Site) The current site object.

Source

File: wp-admin/includes/class-wp-ms-sites-list-table.php

View on Trac

Changelog

Version Description
5.3.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/display_site_states