Last active
November 8, 2022 15:54
-
-
Save Dorf/b4b6227195d4697cf13b0027b50c47a9 to your computer and use it in GitHub Desktop.
[wp-config local] basic setup #wp #wp-config #wordpress #setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define( 'WP_CACHE', false ); | |
// define( 'WP_ENVIRONMENT_TYPE', 'development' ); | |
define( 'WP_ENVIRONMENT_TYPE', 'local' ); // https://wordpress.org/plugins/display-environment-type/ | |
/* Modified directories can be used for version control */ | |
define( 'WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] ); // alt: define( 'WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/path/to/wordpress' ); | |
define( 'WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] ); // alt: define( 'WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/path/to/wordpress' ); | |
define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/path/to/wp-content' ); | |
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/path/to/wp-content' ); | |
define( 'UPLOADS', 'media' ); | |
define( 'WP_PLUGIN_DIR', dirname(__FILE__) . '/path/to/plugins' ); | |
define( 'WP_PLUGIN_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/path/to/plugins' ); | |
define( 'BE_MEDIA_FROM_PRODUCTION_URL', 'https://productiondomain.com' ); // https://wordpress.org/plugins/be-media-from-production/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment