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
1226
1227           /**
1228            * Fires after the current blog's 'public' setting is updated.
1229            *
1230            * @since MU (3.0.0)
1231            *
1232            * @param int    $site_id Site ID.
1233            * @param string $value   The value of the site status.
1234            */
1235           do_action( 'update_blog_public', $site_id, $new_site->public );
1236      }
1237 }
1238
1239 /**
1240  * Cleans the necessary caches after specific site data has been updated.
1241  *
1242  * @since 5.1.0
1243  *
1244  * @param WP_Site $new_site The site object after the update.