make_ham_blog
Action HookDescription
Fires when the 'spam' status is removed from a site.Hook Information
File Location |
wp-includes/ms-site.php
View on GitHub
|
Hook Type | Action |
Line Number | 1184 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$site_id
|
Site ID. |
Usage Examples
Basic Usage
<?php
// Hook into make_ham_blog
add_action('make_ham_blog', 'my_custom_function', 10, 1);
function my_custom_function($site_id) {
// Your custom code here
}
Source Code Context
wp-includes/ms-site.php:1184
- How this hook is used in WordPress core
<?php
1179 *
1180 * @since MU (3.0.0)
1181 *
1182 * @param int $site_id Site ID.
1183 */
1184 do_action( 'make_ham_blog', $site_id );
1185 }
1186 }
1187
1188 if ( $new_site->mature !== $old_site->mature ) {
1189 if ( '1' === $new_site->mature ) {
PHP Documentation
<?php
/**
* Fires when the 'spam' status is removed from a site.
*
* @since MU (3.0.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.