Skip to content

Instantly share code, notes, and snippets.

@AustinWinstanley
Last active April 10, 2017 21:53
Show Gist options
  • Select an option

  • Save AustinWinstanley/df1c7fe19e52f94f9f7d625b2c6a4ee1 to your computer and use it in GitHub Desktop.

Select an option

Save AustinWinstanley/df1c7fe19e52f94f9f7d625b2c6a4ee1 to your computer and use it in GitHub Desktop.
Change Content Directory #WordPress
/**
* Content Directories and URL's
*
* Only needs to be set if you want to change the location of wp-content.
*/
/** Content URL */
define( 'WP_CONTENT_URL', 'https://content.example.com' );
/** Content Directory */
define( 'WP_CONTENT_DIR', dirname( dirname( __FILE__ ) ) . '/wp-content' ); // Up one directory
/** Plugin URL */
define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' );
/** Plugin Directory */
define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' );
/** Language Directory */
define( 'WP_LANG_DIR', dirname( dirname( __FILE__ ) ) . '/wp-languages' ); // Up one directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment