unmature_blog
Action HookDescription
Fires when the 'mature' status is removed from a site.Hook Information
File Location |
wp-includes/ms-site.php
View on GitHub
|
Hook Type | Action |
Line Number | 1208 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$site_id
|
Site ID. |
Usage Examples
Basic Usage
<?php
// Hook into unmature_blog
add_action('unmature_blog', 'my_custom_function', 10, 1);
function my_custom_function($site_id) {
// Your custom code here
}
Source Code Context
wp-includes/ms-site.php:1208
- How this hook is used in WordPress core
<?php
1203 *
1204 * @since 3.1.0
1205 *
1206 * @param int $site_id Site ID.
1207 */
1208 do_action( 'unmature_blog', $site_id );
1209 }
1210 }
1211
1212 if ( $new_site->archived !== $old_site->archived ) {
1213 if ( '1' === $new_site->archived ) {
PHP Documentation
<?php
/**
* Fires when the 'mature' status is removed from a site.
*
* @since 3.1.0
*
* @param int $site_id Site ID.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-includes/ms-site.php
Related Hooks
Related hooks will be displayed here in future updates.