• Hello, I’m a bit confused about something. Say I want to define something as false… like…

    /** Disable Comments Persistent Mode */
    define('DISABLE_COMMENTS_ALLOW_PERSISTENT_MODE', false);

    or

    /** Disable WP File Editor */
    define('DISALLOW_FILE_EDIT', true);

    Normally, i would just add this to wp-config, but should something like this go in functions.php, and if so, should I be using a site-functions type plugin to add all of my customizations?

Viewing 1 replies (of 1 total)
  • Something like this:

    define(‘DISALLOW_FILE_EDIT’, true);

    should definitely go in wp-config.php rather than your theme’s functions.php.

    There’s no reason to tie the disabling of files to the specific theme; it’s a setting for the entire WordPress installation.

Viewing 1 replies (of 1 total)
  • The topic ‘Benefit to using wp-config over functions?’ is closed to new replies.