Monthly Archive: July 2016

Calling Ajax in WordPress

There are so many ways to call ajax in WordPress, but below is how I do it. 🙂 Add the following functions in PHP file. Add the following functions in JS file.

Display PHP Errors

The following code snippet will show php errors and warnings if there is any.

Plugin Class

Since I know that I will be making more plugins for the rest of my life, I decided to create a class that does the basic task that most of my plugins need, namely:...