Add latest commit info on login footer using login_footer hook

On the command line, I tried to run git log –git-dir=”[dir].git’ -1 –work-tree=”[dir]” and it gave me an error. When I ran git –git-dir=”[dir].git” –work-tree=”[dir]” log -1, it worked as expected. So your code should probably be echo shell_exec( “git –git-dir=”$E4AFZ_PLUGIN_ROOT_DIR.git” –pretty=format:’%h – %s (%ci)’ –abbrev-commit –work-tree=”$E4AFZ_PLUGIN_ROOT_DIR” log -1 ); Also: PHP expands variables inside … Read more

Workflow for working with git and WordPress

The problem with the linked article in your question is that it is suggesting to download WordPress and then create your own git repo – but then this cannot be easily updated. Instead you can have WordPress itself in git. Rather than the default subversion, there is an offical Github repository of WordPress, and in … 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

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

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