activate_blog
Fires after a network site has its deletion flag removed.
Usage
add_action( 'activate_blog', 'wp_kama_activate_blog_action' );
/**
* Function for `activate_blog` action-hook.
*
* @param int $id The ID of the reactivated site.
*
* @return void
*/
function wp_kama_activate_blog_action( $id ){
// action...
}
- $id(int)
- The ID of the reactivated site.
Changelog
| Since 3.0.0 | Introduced. |
Where the hook is called
In file: /wp-admin/network/sites.php
activate_blog
wp-admin/network/sites.php 294
do_action( 'activate_blog', $id );