WordPress at a glance
filter is not described

display_site_states filter-hook . WP 5.3.0

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

Usage

add_filter( 'display_site_states', 'filter_function_name_2441', 10, 2 );
function filter_function_name_2441( $site_states, $site ){
	// filter...

	return $site_states;
}
$site_states(array)
An array of site states.
Default: 'Main', 'Archived', 'Mature', 'Spam', 'Deleted'
$site(WP_Site)
The current site object.

Список изменений

С версии 5.3.0 Введена.

Где вызывается хук

WP_MS_Sites_List_Table::site_states()
display_site_states
wp-admin/includes/class-wp-ms-sites-list-table.php 635
$site_states = apply_filters( 'display_site_states', $site_states, $_site );

Где используется хук в ядре WP

Использование не найдено.