Skip to content

Instantly share code, notes, and snippets.

@jennimckinnon
Last active July 29, 2016 22:08
Show Gist options
  • Select an option

  • Save jennimckinnon/2f6cc79c75556bfa771f7d09a5561856 to your computer and use it in GitHub Desktop.

Select an option

Save jennimckinnon/2f6cc79c75556bfa771f7d09a5561856 to your computer and use it in GitHub Desktop.
Creating custom WordPress file structure, via Maurizio Pelizzone at WCEU 2016 http://wordpress.tv/2016/07/01/maurizio-pelizzone-wordpress-hardening-ten-tips-in-ten-minutes/
define('WP_CONTENT_DIR', dirname(__FILE__) . '/public');
define('WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/public');
define( 'WP_UPLOADS_DIR', dirname(__FILE__) . '/uploads' );
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/application');
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment