mature_blog
Action HookDescription
Fires when the 'mature' status is added to a site.Hook Information
File Location |
wp-includes/ms-site.php
View on GitHub
|
Hook Type | Action |
Line Number | 1198 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$site_id
|
Site ID. |
Usage Examples
Basic Usage
<?php
// Hook into mature_blog
add_action('mature_blog', 'my_custom_function', 10, 1);
function my_custom_function($site_id) {
// Your custom code here
}
Source Code Context
wp-includes/ms-site.php:1198
- How this hook is used in WordPress core
<?php
1193 *
1194 * @since 3.1.0
1195 *
1196 * @param int $site_id Site ID.
1197 */
1198 do_action( 'mature_blog', $site_id );
1199 } else {
1200
1201 /**
1202 * Fires when the 'mature' status is removed from a site.
1203 *
PHP Documentation
<?php
/**
* Fires when the 'mature' status is added to 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.