Have WP Theme update from Git Repository

There’re a couple of libraries out there. One of the more well known is from Joey Kudish and hosted on GitHub itself. Basically it does the following: utilizes the GitHub API Adds a callback to the ‘pre_set_site_transient_update_plugins’ filter Adds another callback to the ‘plugins_api’ filter finally utilizes the WP HTTP API and does a wp_remote_get() … Read more

WordPress Health Tool reporting version control as a critical issue

There’s the site_status_tests filter, to e.g. remove the asynchronous background updates tests: add_filter( ‘site_status_tests’, function ( $tests ) { unset( $tests[‘async’][‘background_updates’] ); return $tests; } ); But one could argue that this is just hiding information from the user. Ticket #46733 suggests instead e.g. “…ignored tests section, hidden away like the Passed tests“, so the … Read more

WordPress master + child themes + Git workflow

Why not use a completely separate repo for each child-theme site once its established? Clone the master repo when spinning up the environment, remove the Git directory, init a new Git repo, and push it up to wherever? Now each child theme can be developed independently of each other. Alternatively, if you’re using the same … Read more

Syncing local content with development / staging sites

Overview That’s the one main caveat of WordPress development, that even a seasoned WordPress developer still wonders what’s the perfect automation for syncing database content from local environment to live server. You can’t just upload your database dump from your local development environment to the server and be happy with the results. WordPress actually stores … Read more

git and local wordpress: how to handle wordpress updates?

I would formulate your requirements like this: repository should capture complete and precise state of site updates should be tested locally and pushed to production database update events should run in production reliably Sticking with Git alone that would indeed mean that you need to install updates locally and commit them into repository. As for … Read more

Migrating data between local and development server

Assuming your wp-config.php is already in place and in order: Step 1. Mysqldump your development database Step 2. Replace all instances of development.domain.com to production.domain.com^^ Step 3. Login to MySQL, run a SOURCE command to import data e.g. source /path/to/file ^^ How to replace all instances of old domain with new: (1) Copy the script … Read more

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