Collaboratively develop a WordPress site

Git is definitely a valuable tool for collaborative WordPress development. Have a look at some talks on WordPress.tv about using Git: http://wordpress.tv/?s=git If you understand a bit of French, this talk (video / slides) by Amaury Balmer is terrific. Some of his recommendations: Use an automated deployment method (running your own, or using an off-the-shelf … 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

Multiple copies of the same website: how to organize code/architecture?

tl;dr Code You can easily go with a WordPress Multisite or Network install (you can read at the bottom why I recommend against that). It allows sharing a lot between installs, starting from user accounts to (parent) themes, plugins, etc. with other sites in your network. Another option is to spin up installs using Composer. … Read more

Different color admin bars for dev, staging and production

You can use a filter to set the admin color scheme, which includes colors for the admin bar: <?php // add a filter add_filter(‘get_user_option_admin_color’, ‘wpse_313419_conditional_admin_color’); // function wpse_313419_conditional_admin_color($result) { // Dev: use ‘light’ color scheme if(get_site_url() == ‘http://dev.example.com’) { return ‘light’; // Staging: use ‘blue’ color scheme } elseif(get_site_url() == ‘http://staging.example.com’) { return ‘blue’; // … Read more

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