To fix this issue run the following command to your repo:
git pull --rebase
And then do whatever you want to do.
To fix this issue run the following command to your repo:
git pull --rebase
And then do whatever you want to do.
WordPress has default backbone js included and we can use backebone.js for ajax in WordPress.
We just need to include it. I’ve created an example of ajax using backbone.
All you need to do is check the following link.
https://github.com/BhargavBhandari90/wp-tips/tree/main/wp-backbone-ajax
First, unlink the version you want using the following command
brew unlink php@8.0
Then link your desired version using the following command
brew link php@7.4
Ref: https://daily-dev-tips.com/posts/installing-php-on-your-mac/
Instruction is given in the below link.
https://github.com/BhargavBhandari90/wp-tips/tree/main/add-cron-job
Sometimes we have an error like below when we try to push on Github.
Try to check where is your ssh key is being used by the following command:
ssh -T -ai ~/.ssh/id_rsa git@github.com
You will get a response like this:
So, in my case, my ssh key was being used by my other GitHub account. Now you have 2 choices.
I did 1st as It was not needed for my other account.