Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save INDIAN2020/c7d5ba62afc3dae4f6ccc9a35dabcb27 to your computer and use it in GitHub Desktop.
Save INDIAN2020/c7d5ba62afc3dae4f6ccc9a35dabcb27 to your computer and use it in GitHub Desktop.
Move the Wordpress Content Folder This new, more easily accessible wp-content folder will be used instead of the one in the WordPress directory. This will mean you will lose access to the default themes. You can either manually move them to the new content directory or you can register the original wp-content folder using register_theme_director…
define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . 'path/to/wp-content' );
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/path/to/wp-content' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment