Skip to content

Instantly share code, notes, and snippets.

@yozzi
Created November 6, 2015 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yozzi/789e09e0c0a078488238 to your computer and use it in GitHub Desktop.
Save yozzi/789e09e0c0a078488238 to your computer and use it in GitHub Desktop.
Rename WordPress wp-content folder
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
/** Just before that, paste this: */
/** Rename the wp-content folder to assets and direct WP to it */
define ('WP_CONTENT_FOLDERNAME', 'assets');
define ('WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME);
define ('WP_CONTENT_URL', 'http://yourdomain.com/'.WP_CONTENT_FOLDERNAME);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment