wphooks.info - wpmu_delete_blog_upload_dir

wpmu_delete_blog_upload_dir

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/ms-blogs.php:
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
	}

	/**
	 * Filters the upload base directory to delete when the site is deleted.
	 *
	 * @since MU (3.0.0)
	 *
	 * @param string $uploads['basedir'] Uploads path without subdirectory. @see wp_upload_dir()
	 * @param int    $site_id            The site ID.
	 */
	$dir     = apply_filters( 'wpmu_delete_blog_upload_dir', $uploads['basedir'], $site->id );
	$dir     = rtrim( $dir, DIRECTORY_SEPARATOR );
	$top_dir = $dir;
	$stack   = array( $dir );
	$index   = 0;

	while ( $index < count( $stack ) ) {
		// Get indexed directory from stack
		$dir = $stack[ $index ];