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 Premium Plugin (3rd Party Github User)

WordPress is licensed under GPL, which according to WordPress means that all WP plugins must also be licensed to be GPL compatible. There is debate about that, but almost all of the plugins in that person’s GitHub account are explicitly licensed under GPL. Under GPL it is technically legal to redistribute (including selling) the actual … Read more

GitHub .md files to WordPress pages

I have found a plugin called WordPress GitHub Sync. It should be able to synchronize both ways. It hasn’t been updated in 5 months and it lacks a lot of documentation but I was able to import a file from my GitHub repository into WordPress. I still have to figure out how it exactly works, … Read more

Is Git/GitHub a good WordPress deployment solution?

I use git for this and find it works really well. A few suggestions: Add your uploads directory (wp-content/uploads) directory to your .gitignore file. Run a web server and database server on your development system so you can test changes locally before pushing them to production. Keep your database connection settings consistent beween dev and … Read more

Git push requires username and password

A common cause is cloning using the default (HTTPS) instead of SSH. You can correct this by going to your repository, clicking “Clone or download”, then clicking the “Use SSH” button above the URL field and updating the URL of your origin remote like this: You can check if you have added the remote as … Read more

Import existing source code to GitHub

If you’ve got local source code you want to add to a new remote new git repository without ‘cloning’ the remote first, do the following (I often do this – you create your remote empty repository in bitbucket/github, then push up your source) Create the remote repository, and get the URL such as [email protected]:/youruser/somename.git or https://github.com/youruser/somename.gitIf your local … Read more

Create empty branch on GitHub

November 2021 Update: As of git version 2.27, you can now use git switch –orphan <new branch> to create an empty branch with no history. Unlike git checkout –orphan <new branch>, this branch won’t have any files from your current branch (save for those which git doesn’t track). This should be the preferred way to create empty branches with … Read more

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