bp_delete_site( int|WP_Error $site_id_or_error, bool|WP_Site $drop_or_site = false )

Fires a BuddyPress hook when a new WordPress site is deleted.


Description Description

This hook makes sure BuddyPress is back compatible with WordPress versions < 5.1.0.


Parameters Parameters

$site_id_or_error

(Required) A WP Error object or the site ID.

$drop_or_site

(Optional) A WP Site object or a boolean to inform whether site's table should be dropped.

Default value: false


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.