Generic Google Analytics Report

So finding or building a decent Google Analytics report can take time. Here is one of my go to reports when looking for a decent collection of data. It contains items like Sessions, Pageviews, Average Session Duration. Some show an overall month and others show time a...

Get Contents via cURL

So I have ran into an issue where a site was using URL's in the file_get_contents function and stopped working on the server.  This was also an issue if anyone was trying to do a URL include within a require() or an include(). Here was a solution that I found that...

Getting dynamic data into JavaScript using Ajax

So there are often times you would like to have settings in the WordPress dashboard but use the data in a js file. I found that this can easily be done using a jQuery.post call to a WordPress Ajax url. /* Javascript file */ var site_url = ”; jQuery( document...

Give View Entry access to a WordPress Role

So I came across this snippet of code recently when I was trying to find a way to give a user access to a form's entries based on a user role.  I did find that I needed to modify it a little bit for the menu side of things so that when you go to the view entries page...

Google reCaptcha v3 PHP Form using CURL

This goes in the form page within the header with the public site key where the X's are. <script src=”https://www.google.com/recaptcha/api.js?render=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX”></script> <script> grecaptcha.ready(function() {...