A WordPress-centric search engine for devs and theme authors



display_site_states ›

Since5.3.0
Deprecatedn/a
apply_filters( 'display_site_states', $site_states, $_site )
Parameters: (2)
  • (array) $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:

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





Source

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