do_action( 'update_blog_public', int $site_id, string $is_public )
- Since
- MU (3.0.0)
Fires after the current blog's 'public' setting is updated.
Compatibility
- WordPress
- since MU (3.0.0)
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$site_idint- Site ID.
$is_publicstring- Whether the site is public. A numeric string, for compatibility reasons. Accepts '1' or '0'.
Where this hook fires · 1
wp-includes/ms-site.php:1277wp_maybe_transition_site_statuses_on_update()
Source code
* @since MU (3.0.0) * * @param int $site_id Site ID. * @param string $is_public Whether the site is public. A numeric string, * for compatibility reasons. Accepts '1' or '0'. */ do_action( 'update_blog_public', $site_id, $new_site->public ); }} /** * Cleans the necessary caches after specific site data has been updated. *Changelog
Introduced in MU (3.0.0). Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.