wp_delete_site action-hook . WP 5.1.0
Fires once a site has been deleted from the database.
Usage
add_action( 'wp_delete_site', 'action_function_name_5426' ); function action_function_name_5426( $old_site ){ // action... }
- $old_site(WP_Site)
- Deleted site object.
Changelog
Since 5.1.0 | Introduced. |
Where the hook is called
wp-includes/ms-site.php 281
do_action( 'wp_delete_site', $old_site );
Where in WP core the hook is used WordPress
wp-includes/ms-site.php 47
add_action( 'wp_delete_site', 'wp_maybe_update_network_site_counts_on_update', 10, 1 );