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

Image Gallery from a Directory of Images

Here is a nice little script that takes a directory full of images, creates a thumbnail of said image and saves it to a directory, and then displays the gallery of images.  I didn't create this code but found a guy by the name of David Walsh who took code written by...

Last Modified Column

I wanted to be able to add a Last Modified date column to my Pages and Posts page. So I came across this website, ITSupportGuides, that had a create little code snippet to accomplish just what I was looking for. Ideally this should get added to a plugin so that you...

PHP and Google reCaptcha Implementation via cURL

So the first step is to add the recaptcha api call to before the close head tag. <script src='https://www.google.com/recaptcha/api.js'></script> </head> Then within the form itself before the submit button or where ever you would like the reCaptcha...

PHP Session Check Function

Here is a function that returns whether or not PHP Session is activated or now. function is_session_started() { if ( php_sapi_name() !== ‘cli' ) { if ( version_compare(phpversion(), ‘5.4.0', ‘>=') ) { return session_status() === PHP_SESSION_ACTIVE...