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.


Top ↑

Source Source

File: bp-core/bp-core-wpabstraction.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.