display_site_states WordPress Filter Hook
The display_site_states hook is called whenever a site's states need to be displayed. It allows for customizations to how the states are displayed, such as which states are displayed and in what order.
apply_filters( 'display_site_states', string[] $site_states , WP_Site $site ) #
Filters the default site display states for items in the Sites list table.
Parameters
- $site_states
(string[])An array of site states. Default 'Main', 'Archived', 'Mature', 'Spam', 'Deleted'.
- $site
(WP_Site)The current site object.
Source
Changelog
Version | Description |
---|---|
5.3.0 | Introduced. |