Collaboratively develop a WordPress site

Git is definitely a valuable tool for collaborative WordPress development. Have a look at some talks on WordPress.tv about using Git: http://wordpress.tv/?s=git If you understand a bit of French, this talk (video / slides) by Amaury Balmer is terrific. Some of his recommendations: Use an automated deployment method (running your own, or using an off-the-shelf …

Read more

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

Multiple copies of the same website: how to organize code/architecture?

tl;dr Code You can easily go with a WordPress Multisite or Network install (you can read at the bottom why I recommend against that). It allows sharing a lot between installs, starting from user accounts to (parent) themes, plugins, etc. with other sites in your network. Another option is to spin up installs using Composer. …

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

Git Workflow for Large, Live Site?

(I realize this question is five years old, and that the OP probably found a solution already.) I work on a team that manages a large WordPress website. We have tens of thousands of custom posts, with data being entered/edited dozens if not hundreds of times a day. We actually break things down a little …

Read more

WordPress and Git – What folders should I track?

Basically ignore everything except your theme folder and custom plugins. sample .gitignore: wp-admin/ wp-includes/ .htaccess index.php license.txt liesmich.html readme.html wp-activate.php wp-blog-header.php wp-comments-post.php wp-config.php wp-config-sample.php wp-config-stage.php wp-config-live.php wp-config-dev.php wp-config-production.php wp-cron.php wp-links-opml.php wp-load.php wp-login.php wp-mail.php wp-settings.php wp-signup.php wp-trackback.php xmlrpc.php config/ wp-content/plugins/ wp-content/mu-plugins/ wp-content/languages/ wp-content/uploads/ wp-content/upgrade/ wp-content/themes/* # don’t ignore the theme you’re using !wp-content/themes/yourthemename This makes the …

Read more

WordPress Git Workflow Help

General Questions answered Nr.1. Would like to have my git environment on my own server internally, not using Github to handle repos. The first thing I’d do is to check out composer and how it works with WordPress, which is a project by Andrey “@Rarst” Savchenko. Nr.2. Automatic creation of subdomains upon git branch creation …

Read more