Skip to content

Instantly share code, notes, and snippets.

@hakre
hakre / dl-file.php
Created January 2, 2012 21:41
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+
@scribu
scribu / network-quick-switch.php
Created September 10, 2011 16:23
Network Quick-Switch
<?php
/*
Plugin Name: Network Quick-Switch
Version: 1.0
Description: Adds the ability to quickly switch between site and network admin screens.
Author: scribu
Author URI: http://scribu.net/
*/
if ( is_multisite() ) {