Automate WordPress website setup with prefilled data

I’ve had great luck with scripting WP-CLI to install, setup and configure WordPress development, staging, and production sites. With it, you can automate nearly the entire process including the installation of specific plugins, the creation of menus, categories, and just about any WordPress configuration item. Obviously, this approach would require shell access and the installation … Read more

Userless db-only wordpress instalation

It is not possible to install WordPress without creating a user. However, you could immediately remove that user with a second wp-cli command like yes | wp user delete 1 Note: this will also delete any posts and pages associated with that user. You can normally re-assign them to a different user but in this … Read more

PHP if statement with German umlauts [closed]

This is probably because of your database collation. There are numerous questions on StackOverflow about this sort of thing. Your question may get closed or migrated as it’s not on-topic for wordpress.stackexchange.com; Take a look at this question, or perhaps ask there instead. Also, why are you not using the WordPress WP_Query class to return … Read more

wp-cli PHP Notice after moving server behind load balancer

Check if isset() first. It will not always be set (that is what the undefined index is referring to): I took this from user temuraru $isSecure = false; if (isset($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] == ‘on’) { $isSecure = true; } elseif (!empty($_SERVER[‘HTTP_X_FORWARDED_PROTO’]) && $_SERVER[‘HTTP_X_FORWARDED_PROTO’] == ‘https’ || !empty($_SERVER[‘HTTP_X_FORWARDED_SSL’]) && $_SERVER[‘HTTP_X_FORWARDED_SSL’] == ‘on’) { $isSecure = true; … Read more

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