Extending a custom framework built into WordPress to automatically turn the ‘Search Engine Visibility’ setting ON / OFF, dependant on environment

Those “definable settings” are constants. WordPress defines its default constants in this file. If a constant definition is wrapped in a defined() check, like this: if ( ! defined( ‘WP_DEBUG_DISPLAY’ ) ) { define( ‘WP_DEBUG_DISPLAY’, true ); } Then it means you can define it first in the wp-config.php file (or, apparently, this framework’s config … Read more

Changing the wp-config.php broke the site

There’re some things you should not play around with, until you really know core inside out and one of those things are the Path constants that can be set in your wp-config.php. Here’s how I do it. Note, that it’s uncommented, so it doesn’t trigger and WP uses its default. # define( ‘WP_CONTENT_DIR_NAME’, ‘wp-content’ ); … Read more

Storing FTP details in wp-config.php

I would consider it somewhat safe since that’s where your database connection information is also stored. One could easily ruin your website by deleting your whole database if they had access to that file. There are a couple of things you can do to increase security: Move the wp-config file one level outside the root. … Read more