Set site title & tagline with wp.config or function.php

These fields have the keys ‘blogname’ and ‘blogdescription’ respectively in the options table. I’m not sure exactly why you need to do this as it seems like a priority to secure your site and be able to update it through the dashboard yourself, but you can update them easily from functions.php with update_option, e.g.: update_option( … Read more

Problem migrating to localhost

As in this question and answer, and because of your huge .htaccess file it’s like you have a .htaccess directive that’s causing your apache to not process that file or understand its type. As mentioned by @Rup, using the default WordPress .htaccess, and checking other directories for rogue .htaccess files will likely resolve this issue. … Read more

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)