wpmu_delete_blog_upload_dir WordPress Filter Hook

The wpmu_delete_blog_upload_dir function is a WordPress hook which is called when a WordPress Multisite blog is deleted. This function can be used to clean up any uploaded files or directories which are associated with the blog being deleted.

apply_filters( 'wpmu_delete_blog_upload_dir', string $basedir, int $site_id ) #

Filters the upload base directory to delete when the site is deleted.


Parameters

$basedir

(string)Uploads path without subdirectory. @see wp_upload_dir()

$site_id

(int)The site ID.


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.