activate_blog
Fires after a network site has its deletion flag removed.
Использование
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.
Список изменений
| С версии 3.0.0 | Введена. |
Где вызывается хук
В файле: /wp-admin/network/sites.php
activate_blog
wp-admin/network/sites.php 294
do_action( 'activate_blog', $id );