Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: mature_blog

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
1195           if ( 1 == $new_site->mature ) {
1196
1197                /**
1198                 * Fires when the 'mature' status is added to a site.
1199                 *
1200                 * @since 3.1.0
1201                 *
1202                 * @param int $site_id Site ID.
1203                 */
1204                do_action( 'mature_blog', $site_id );
1205           } else {
1206
1207                /**
1208                 * Fires when the 'mature' status is removed from a site.
1209                 *
1210                 * @since 3.1.0
1211                 *
1212                 * @param int $site_id Site ID.
1213                 */