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() to the GitHub repo.

Oh, yes – close to have forgotten this – it adds a transient to avoid checking the remote repo on every request.

Leave a Comment