Skip to content

Instantly share code, notes, and snippets.

@duogeekdev
Created May 9, 2015 21:59
Show Gist options
  • Select an option

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

Select an option

Save duogeekdev/87a6c1f98ff4653bd389 to your computer and use it in GitHub Desktop.
Rename wp-content
<?php
define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . 'new/path/to/wp-content' );
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . 'new/path/to/wp-content' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment