bp_delete_site( int|WP_Error $site_id_or_error, bool|WP_Site $drop_or_site = false )
Fires a BuddyPress hook when a new WordPress site is deleted.
Description Description
This hook makes sure BuddyPress is back compatible with WordPress versions < 5.1.0.
Parameters Parameters
- $site_id_or_error
-
(Required) A WP Error object or the site ID.
- $drop_or_site
-
(Optional) A WP Site object or a boolean to inform whether site's table should be dropped.
Default value: false
Source Source
File: bp-core/bp-core-wpabstraction.php
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |