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.
Source
File: wp-includes/ms-site.php
Changelog
Version | Description |
---|---|
MU (3.0.0) | Introduced. |