bp_insert_site_hook()
Returns the name of the hook to use once a WordPress Site is inserted into the Database.
Description Description
WordPress 5.1.0 deprecated the wpmu_new_blog
action. As BuddyPress is supporting WordPress back to 4.9.0, this function makes sure we are using the new hook wp_initialize_site
when the current WordPress version is upper or equal to 5.1.0 and that we keep on using wpmu_new_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. |