Trigger Plugin database update after git pull
Trigger Plugin database update after git pull
Trigger Plugin database update after git pull
Deploy WordPress From Local Docker to Hosting Provider
A lot of people use WP CLI to script the setup using Bash scripting. Here are some articles that discuss this. Another approach is to hardcode PHP scripts with embedded SQL to do the setup. A third approach is something I have been working on recently; a set of PHP objects to make setup and … Read more
Don’t use the update now button, use a full on download of the core WP – http://wordpress.org/download/ – and then make sure you flush any cache you’ve got running. Do you have memcached or APC or xcache? Purge that. Plugins ditto. I saw that on one of my sites where my server’s object cache hung … Read more
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
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
Generally, there are two sets of data you want to control with WordPress: Files Database So, in theory, you can do it all by hand copying your filesystem and database every day. Now, let’s go to the tools you may want to check to make this faster, I will focus on three of them so … Read more
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
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
If I’m working on whole project for a client (WP install + custom theme + plugins), I put everything in one repository. My thinking is that I created one “solution” based on WP + some existing plugins + my added code, and thus I should track it as one solution. When WP or a plugin … Read more