wp_maybe_update_network_site_counts_on_update


wp_maybe_update_network_site_counts_on_update ( $new_site, $old_site = null )

Parameters:
  • (WP_Site) new_site The site object that has been inserted, updated or deleted.
  • (WP_Site|null) old_site Optional. If $new_site has been updated, this must be the previous state of that site. Default null.
Defined at:

Description

Updates the count of sites for a network based on a changed site.

Related Functions

wp_maybe_update_network_site_counts, wp_maybe_update_network_user_counts, wp_update_network_site_counts, wp_maybe_clean_new_site_cache_on_update, wp_update_network_user_counts

Top Google Results

User discussions

wpseek mobile