Skip to content

Instantly share code, notes, and snippets.

@robneu
Last active December 11, 2024 18:57
Show Gist options
  • Save robneu/5282532 to your computer and use it in GitHub Desktop.
Save robneu/5282532 to your computer and use it in GitHub Desktop.
A proxy loader file to load an example plugin inside the mu-plugins directory
<?php
/**
* Plugin Name: Example MU Plugin
* Plugin URI: http://example.com
* Description: Site-specific plugin for example.com
* Version: 1.0.0
* Author: FAT Media
* Author URI: http://youneedfat.com
*/
// Main example plugin file
require_once( WPMU_PLUGIN_DIR . '/example-plugin/plugin.php' );
@robneu
Copy link
Author

robneu commented Jun 22, 2013

A full tutorial on defining and using plugin URLs in a WordPress Must Use plugin can be found at http://youneedfat.com/get-the-mu-plugin-directory-url/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment