Skip to content

Instantly share code, notes, and snippets.

<#
.SYNOPSIS
This script configures Windows 10 with minimal configuration for VDI.
.DESCRIPTION
This script configures Windows 10 with minimal configuration for VDI.
// ==============
// General Advice
// ==============
@pauldalewilliams
pauldalewilliams / dl-file.php
Last active February 1, 2018 21:54 — forked from hakre/dl-file.php
Wordpress login to download uploaded files
<?php
/*
* dl-file.php
*
* Protect uploaded files with login.
*
* @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in
*
* @author hakre <http://hakre.wordpress.com/>
* @license GPL-3.0+