[ Index ] |
PHP Cross Reference of BuddyPress |
[Source view] [Print] [Project Stats]
Deprecated functions.
File Size: | 62 lines (2 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
bp_insert_site_hook() X-Ref |
Returns the name of the hook to use once a WordPress Site is inserted into the Database. 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. since: 6.0.0 return: string The name of the hook to use. |
bp_delete_site_hook() X-Ref |
Returns the name of the hook to use once a WordPress Site is deleted. 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. since: 6.0.0 return: string The name of the hook to use. |
Generated: Sun Dec 22 01:00:54 2024 | Cross-referenced by PHPXref 0.7.1 |