You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automatic WordPress theme updates from a GitHub repository using the native WordPress update system.
WordPress Theme Updates from GitHub
Adding automatic theme updates from a GitHub repository is actually pretty simple. The following function will hook into WordPress's native update system and grab the latest release from the repo of your choosing (if the version number has increased).
Place the following in your functions.php
// Automatic theme updates from the GitHub repositoryadd_filter('pre_set_site_transient_update_themes', 'automatic_GitHub_updates', 100, 1);
function automatic_GitHub_updates($data) {
Logging function for internal WordPress errors. Useful for debugging things that don't print errors to screen, like 'save-post'. Source: https://stackoverflow.com/a/10438630/4941993
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters