Access general settings trough wordpress files

You should be able to amend those items from the database. In the table wp_options there are the option_names home and siteurl – editing these back to the http version should do the trick. You might also want to check your wp-config.php file for the following: define(‘WP_SITEURL’, ‘https://www.website.com/’); define(‘WP_HOME’, ‘https://www.website.com/’); And remove the ‘s’ here … Read more

Deploy pre-configured database

WP-CFM is probably the closest to what you’re looking for. Actually, it has been inspired by Drupal’s Features module. From the plugin page: WP-CFM lets you copy database configuration to / from the filesystem. Easily deploy configuration changes without needing to copy the entire database. However, as someone who has spent the better part of … Read more

Custom theme options Radio inputs not saving

Why isn’t the following option getting saved? Because the database option name (the second parameter for register_setting()) is aa_myoption, hence the input name has to be aa_myoption or in the array notation like aa_myoption[my_field]: <input name=”aa_myoption”> <!– like this –> <input name=”aa_myoption[my_field]”> <!– or this –> Secondly, when you retrieve the option value and when … Read more

Settings API get_option best practices

Is there a better, more efficient way – considered a “best practice” – to approach this? Yes! Storing structured data in a single option is bad practice. You should use the option name to seperate your data. Otherwise by using arrays and objects, WordPress cannot store those in the database, so it has to turn … Read more

wp_user_roles and Advanced Manipulation

I figured out that I needed to recreate the user account and its permissions. I made a YT tut on it because of the lack of support everywhere on this type of problem. youtube.com/webenvelopment Hope this helps someone else.

Logout redirects to a broken page(home URL is omitted)

Found the answer. It is a bug in WordPress v5.2.3 affecting WordPress in Windows environments. Caused by backslashes in Windows paths that aren’t stripped correctly Details here: https://core.trac.wordpress.org/ticket/47980 I have tried the patch suggested and can confirm it solves the problem. replace: $location = “https://wordpress.stackexchange.com/” . ltrim( $path . “https://wordpress.stackexchange.com/”, “https://wordpress.stackexchange.com/” ) . $location; with … Read more

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