Last active
October 9, 2024 00:33
-
-
Save danielpataki/d3eee86104b3c58d0dd0 to your computer and use it in GitHub Desktop.
WordPress Config File
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( 'ALTERNATE_WP_CRON', true ); |
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('AUTH_KEY', 'put your unique phrase here'); | |
| define('SECURE_AUTH_KEY', 'put your unique phrase here'); | |
| define('LOGGED_IN_KEY', 'put your unique phrase here'); | |
| define('NONCE_KEY', 'put your unique phrase here'); | |
| define('AUTH_SALT', 'put your unique phrase here'); | |
| define('SECURE_AUTH_SALT', 'put your unique phrase here'); | |
| define('LOGGED_IN_SALT', 'put your unique phrase here'); | |
| define('NONCE_SALT', 'put your unique phrase here'); |
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( 'AUTOSAVE_INTERVAL', 120 ); |
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( 'DISABLE_WP_CRON', true ); | |
| define( 'WP_CRON_LOCK_TIMEOUT', 120 ); |
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('DB_NAME', 'database_name_here'); | |
| define('DB_USER', 'username_here'); | |
| define('DB_PASSWORD', 'password_here'); | |
| define('DB_HOST', 'localhost'); | |
| define('DB_CHARSET', 'utf8'); | |
| define('DB_COLLATE', ''); |
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_DEBUG_LOG', true ); |
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_DEFAULT_THEME', 'twentyeleven'); |
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( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); |
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( 'DISALLOW_FILE_EDIT', true ); | |
| define( 'DISALLOW_FILE_MODS', true ); |
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
| // Moving the wp-content directory | |
| define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/extensions' ); | |
| define( 'WP_CONTENT_URL', 'http://mywebsite.com/extensions' ); | |
| // Moving the plugins directory | |
| define( 'WP_PLUGIN_DIR', dirname(__FILE__) . '/extensions/plugins' ); | |
| define( 'WP_PLUGIN_URL', 'http://mywebsite.com/extensions/plugins' ); | |
| define( 'PLUGINDIR', dirname(__FILE__) . '/extensions/plugins' ); | |
| // Creating an additional theme directory | |
| register_theme_directory( dirname( __FILE__ ) . '/themes-dev' ); | |
| // Moving the uploads directory | |
| define( 'UPLOADS', 'uploads' ); |
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_MEMORY_LIMIT', '32M' ); | |
| define( 'WP_MAX_MEMORY_LIMIT', '128M' ); |
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( 'WPMU_PLUGIN_DIR', dirname(__FILE__) . '/extensions/builtin' ); | |
| define( 'WPMU_PLUGIN_URL', 'http://mywebsite.com/extensions/builtin' ); |
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_ALLOW_MULTISITE', true ); |
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
| $table_prefix = 'wp_'; | |
| define('WP_DEBUG', false); |
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
| global $wpdb; | |
| echo "<pre>"; | |
| print_r( $wpdb->queries ); | |
| echo "</pre>"; |
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( 'NOBLOGREDIRECT', 'http://mainwebsite.com' ); |
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
| // Disable post revisions | |
| define( 'WP_POST_REVISIONS', false ); | |
| // Limit revisions to 4 | |
| define( 'WP_POST_REVISIONS', 4 ); |
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( 'SAVEQUERIES', true ); |
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( 'SCRIPT_DEBUG', true ); | |
| define( 'CONCATENATE_SCRIPTS', false ); |
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( 'FORCE_SSL_LOGIN', true ); | |
| define( 'FORCE_SSL_ADMIN', true ); |
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( 'EMPTY_TRASH_DAYS', 3 ); |
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
| # Disable all automatic updates: | |
| define( 'AUTOMATIC_UPDATER_DISABLED', true ); | |
| # Disable all core updates: | |
| define( 'WP_AUTO_UPDATE_CORE', false ); | |
| # Enable all core updates, including minor and major: | |
| define( 'WP_AUTO_UPDATE_CORE', true ); | |
| # Enable core updates for minor releases (default): | |
| define( 'WP_AUTO_UPDATE_CORE', 'minor' ); |
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( 'CUSTOM_USER_TABLE', $table_prefix.'peeps' ); | |
| define( 'CUSTOM_USER_META_TABLE', $table_prefix.'peepmeta' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment