wp_maybe_update_network_site_counts_on_update( WP_Site $new_site, WP_Site|null $old_site = null )
Updates the count of sites for a network based on a changed site.
Description Description
Parameters Parameters
Source Source
File: wp-includes/ms-site.php
function wp_maybe_update_network_site_counts_on_update( $new_site, $old_site = null ) { if ( null === $old_site ) { wp_maybe_update_network_site_counts( $new_site->network_id ); return; } if ( $new_site->network_id != $old_site->network_id ) { wp_maybe_update_network_site_counts( $new_site->network_id ); wp_maybe_update_network_site_counts( $old_site->network_id ); } }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |