tips
7 tips Wp-Config
One command, setting or habit at a time about Wp-Config: what it does, the line to copy and a caveat or two.
Files and updates 3
-
Writes plugin updates directly to disk when ownership allows it.
ls -ld wp-content wp-content/plugins index.php -
Points WordPress at a writable folder for its temporary files.
define( 'WP_TEMP_DIR', '/var/www/example.com/tmp' ); -
Keeps newly bundled themes from reappearing after you cleaned them out.
define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', true );
Debugging and cron 2
-
Loads admin scripts one by one so you can find the failing file.
define( 'CONCATENATE_SCRIPTS', false ); -
Runs scheduled posts on hosts where WordPress cannot call itself.
define( 'ALTERNATE_WP_CRON', true );
WP-CLI 2
-
Lists constants and variables from wp-config.php, optionally filtered by name.
wp config list WP_DEBUG -
Sets a constant in wp-config.php as a real true or false value, without hand-editing the file.
wp config set WP_DEBUG true --raw
Nothing in this filter yet.