wpseek.com
A WordPress-centric search engine for devs and theme authors



display_site_states › WordPress Filter Hooks

Since5.3.0
Deprecatedn/a
apply_filters( 'display_site_states', $site_states, $_site )
Parameters: (2)
  • (string[]) $site_states An array of site states. Default 'Main', 'Archived', 'Mature', 'Spam', 'Deleted'.
    Required: Yes
  • (WP_Site) $site The current site object.
    Required: Yes
Defined at:
Codex:

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





Source

$site_states = apply_filters( 'display_site_states', $site_states, $_site );