display_site_states

display_site_states

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('display_site_states') is found 1 times:

  • /wp-admin/includes/class-wp-ms-sites-list-table.php line 673
    		 * @param string[] $site_states An array of site states. Default 'Main',
    		 *                              'Archived', 'Mature', 'Spam', 'Deleted'.
    		 * @param WP_Site  $site        The current site object.
    		 */
    		$site_states = apply_filters( 'display_site_states', $site_states, $_site );
    
    		if ( ! empty( $site_states ) ) {
    			$state_count = count( $site_states );
    
    			$i = 0;