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...

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() {...

Gravity Forms Field Validation

So the basic way to add validation functionality to a form is by using the gform_validation filter.  This gives you the ability to look at the value entered into any field and then allow it to be submitted or display an error message. //runs validation on all forms...

Gravity Form Hooks

Hooks Run for Initial Form Load Enqueue Scripts gform_form_post_get_meta | FILTER gform_form_post_get_meta_{form_id} | FILTER gform_pre_enqueue_scripts | ACTION gform_pre_enqueue_scripts_{form_id} | ACTION gform_has_conditional_logic | FILTER...