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