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.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

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