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.


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.