bp_delete_site_hook()
Returns the name of the hook to use once a WordPress Site is deleted.
Description Description
WordPress 5.1.0 deprecated the delete_blog action. As BuddyPress is supporting WordPress back to 4.9.0, this function makes sure we are using the new hook wp_validate_site_deletion when the current WordPress version is upper or equal to 5.1.0 and that we keep on using delete_blog for earlier versions of WordPress.
Return Return
(string) The name of the hook to use.
Source Source
File: bp-core/bp-core-wpabstraction.php
Changelog Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |