make_spam_blog
Action HookDescription
Fires when the 'spam' status is added to a site.Hook Information
File Location |
wp-includes/ms-site.php
View on GitHub
|
Hook Type | Action |
Line Number | 1174 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$site_id
|
Site ID. |
Usage Examples
Basic Usage
<?php
// Hook into make_spam_blog
add_action('make_spam_blog', 'my_custom_function', 10, 1);
function my_custom_function($site_id) {
// Your custom code here
}
Source Code Context
wp-includes/ms-site.php:1174
- How this hook is used in WordPress core
<?php
1169 *
1170 * @since MU (3.0.0)
1171 *
1172 * @param int $site_id Site ID.
1173 */
1174 do_action( 'make_spam_blog', $site_id );
1175 } else {
1176
1177 /**
1178 * Fires when the 'spam' status is removed from a site.
1179 *
PHP Documentation
<?php
/**
* Fires when the 'spam' status is added to 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.