WPDev.one
Core Function
View Source on Trac ↗

wp_maybe_transition_site_statuses_on_update()

wp_maybe_transition_site_statuses_on_update( mixed $new_site, mixed $old_site = null )

Triggers actions on site status updates.

Parameters 2 required

Name / Type Description
$new_site
WP_Site

The site object after the update.

Required
mixed

(WP_Site | null) $old_site Optional. If $new_site has been updated, this must be the previous state of that site. Default null.

Required

Return Value

(void)
No return value description available.

Function Information

Since Version
5.1.0
Source File
wp-includes/ms-site.php
Advertisement