Skip to content

Instantly share code, notes, and snippets.

@duogeekdev
Created May 9, 2015 22:00
Show Gist options
  • Select an option

  • Save duogeekdev/a3a33993a0631bb394e6 to your computer and use it in GitHub Desktop.

Select an option

Save duogeekdev/a3a33993a0631bb394e6 to your computer and use it in GitHub Desktop.
Rename plugin folder
<?php
define( 'WP_PLUGIN_DIR', dirname(__FILE__) . '/new/path/to/plugins' );
define( 'WP_PLUGIN_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/new/path/to/plugins' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment