activate_blog
Fires after a network site is activated.
Usage
add_action( 'activate_blog', 'wp_kama_activate_blog_action' ); /** * Function for `activate_blog` action-hook. * * @param int $id The ID of the activated site. * * @return void */ function wp_kama_activate_blog_action( $id ){ // action... }
- $id(int)
- The ID of the activated 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 280
do_action( 'activate_blog', $id );