Custom theme updater – random string in new theme name

The theme name is not related to the folder. The theme name comes from the header information inside the style.css file inside the theme. It’s quite possible that the update being downloaded is a different theme. That’s because of a loophole in the update system itself. The update is checked via the theme-slug instead of … Read more

Pull latest stable release via git [closed]

To my knowledge it is not possible to generically clone/checkout the latest stable version with either git or svn. In either case you have to identify the specific tag (version) you want to pull from with git or svn. Or, as you’ve done, just pull trunk (which is the development branch) For more see: https://codex.wordpress.org/Using_Subversion

How to handle a GitHub webhook POST request?

First, you seem to misunderstand how PHP handles incoming POST request. It only exists in that instance webhook is making request. If you load that page in a browser there won’t be any POST data, unless you are submitting some. To properly check that request was received you should log results from that file and … Read more

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