wp_delete_file

wp_delete_file

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_delete_file') is found 1 times:

  • /wp-includes/functions.php line 7680
    	 * @since 2.1.0
    	 *
    	 * @param string $file Path to the file to delete.
    	 */
    	$delete = apply_filters( 'wp_delete_file', $file );
    
    	if ( ! empty( $delete ) ) {
    		return @unlink( $delete );
    	}
    
    	return false;