Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: update_blog_public

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1232           /**
1233            * Fires after the current blog's 'public' setting is updated.
1234            *
1235            * @since MU (3.0.0)
1236            *
1237            * @param int    $site_id   Site ID.
1238            * @param string $is_public Whether the site is public. A numeric string,
1239            *                          for compatibility reasons. Accepts '1' or '0'.
1240            */
1241           do_action( 'update_blog_public', $site_id, $new_site->public );
1242      }
1243 }
1244
1245 /**
1246  * Cleans the necessary caches after specific site data has been updated.
1247  *
1248  * @since 5.1.0
1249  *
1250  * @param WP_Site $new_site The site object after the update.