do_action( ‘update_blog_public’, int $site_id, string $is_public )

In this article

Fires after the current blog’s ‘public’ setting is updated.

Parameters

$site_idint
Site ID.
$is_publicstring
Whether the site is public. A numeric string, for compatibility reasons. Accepts '1' or '0'.

Source

do_action( 'update_blog_public', $site_id, $new_site->public );

Changelog

VersionDescription
MU (3.0.0)Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.