WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
Line | Code |
---|---|
316 | if ( $details['spam'] != $current_details['spam'] ) { |
317 | if ( $details['spam'] == 1 ) { |
318 | /** |
319 | * Fires when the 'spam' status is added to a blog. |
320 | * |
321 | * @since MU (3.0.0) |
322 | * |
323 | * @param int $blog_id Blog ID. |
324 | */ |
325 | do_action( 'make_spam_blog', $blog_id ); |
326 | } else { |
327 | /** |
328 | * Fires when the 'spam' status is removed from a blog. |
329 | * |
330 | * @since MU (3.0.0) |
331 | * |
332 | * @param int $blog_id Blog ID. |
333 | */ |
334 | do_action( 'make_ham_blog', $blog_id ); |
Line | Code |
1017 |
|
1018 | if ( false === $result ) |
1019 | return false; |
1020 |
|
1021 | clean_blog_cache( $blog_id ); |
1022 |
|
1023 | if ( 'spam' == $pref ) { |
1024 | if ( $value == 1 ) { |
1025 | /** This filter is documented in wp-includes/ms-blogs.php */ |
1026 | do_action( 'make_spam_blog', $blog_id ); |
1027 | } else { |
1028 | /** This filter is documented in wp-includes/ms-blogs.php */ |
1029 | do_action( 'make_ham_blog', $blog_id ); |
1030 | } |
1031 | } elseif ( 'mature' == $pref ) { |
1032 | if ( $value == 1 ) { |
1033 | /** This filter is documented in wp-includes/ms-blogs.php */ |
1034 | do_action( 'mature_blog', $blog_id ); |
1035 | } else { |