How to pass JavaScript variable to PHP in wordpress widget?
I found an easy way to pass a JavaScript variable to PHP variable. Please note that this method works in WordPress version 4.7.2, and only specifically on Widget. I wrote a lot of comments to try to explain what each line did. If you have a better solution, please share with us! Solution: Create a … Read more