wp_delete_file filter-hookWP 2.1.0

Filters the path of the file to delete.

Usage

add_filter( 'wp_delete_file', 'wp_kama_delete_file_filter' );

/**
 * Function for `wp_delete_file` filter-hook.
 * 
 * @param string $file Path to the file to delete.
 *
 * @return string
 */
function wp_kama_delete_file_filter( $file ){

	// filter...
	return $file;
}
$file(string)
Path to the file to delete.

Changelog

Since 2.1.0 Introduced.

Where the hook is called

wp_delete_file()
wp_delete_file
wp-includes/functions.php 7649
$delete = apply_filters( 'wp_delete_file', $file );

Where the hook is used in WordPress

Usage not found.