Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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