Skip to content

Instantly share code, notes, and snippets.

@rosshanney
rosshanney / allow-file-protocol.php
Created August 23, 2012 15:16
Allow file:/// protocol in WordPress
<?php
/*
Plugin name: Allow file protocol
*/
function rh_allow_file_protocol( $protocols ) {
$protocols[] = 'file';
return $protocols;
}