wpmu_drop_tables WordPress Filter Hook
The wpmu_drop_tables hook is used to drop WordPress Multisite tables when a site is deleted. This hook is only fired when Multisite is enabled.
apply_filters( 'wpmu_drop_tables', string[] $tables , int $site_id ) #
Filters the tables to drop when the site is deleted.
Parameters
- $tables
(string[])Array of names of the site tables to be dropped.
- $site_id
(int)The ID of the site to drop tables for.
Source
File: wp-includes/ms-site.php
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |