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.


Top ↑

Source

File: wp-includes/ms-site.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.