Skip to content

Instantly share code, notes, and snippets.

@mrfoxtalbot
Created June 11, 2017 06:40
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 mrfoxtalbot/fc83ef750f13c1930c0c0269c4c9bc3b to your computer and use it in GitHub Desktop.
Save mrfoxtalbot/fc83ef750f13c1930c0c0269c4c9bc3b to your computer and use it in GitHub Desktop.
Rename wp-content folder
<?php
define ('WP_CONTENT_FOLDERNAME', 'assets');
define ('WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME) ;
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');
define('WP_CONTENT_URL', WP_SITEURL . WP_CONTENT_FOLDERNAME);
// Source: http://www.hongkiat.com/blog/renaming-wordpress-wp-content-folder/
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment