Adding Validation to a WordPress Creation Toolkit Field

So I ran into a need to validate an email address for a frontend posting of a custom post type using Cozmos Labs WordPress Creation Toolkit.  Here is the code that I used to be able to accomplish that.  There is some commented out code that allows for you to see what...

AdWords Conversion Tracking

So I ran into an issue where I needed to be able to track conversions in Google AdWords for forms that were using Gravity Forms.  While this example talks about how to do this you could really use this with any form submission to thank you page or confirmation...

Automatic Updating

So not sure how often it does do this but according to WordPress you are able to add some filters so that updates automatically happen.  It is best to add these into your child's functions.php file. Automatic Updates add_filter( 'auto_update_core', '__return_true' );...

Clean Up Orphaned postmeta Data

Sometimes you run into a time where you need to go into the database and delete items from the posts table.  So after doing this you could have a lot of extra data getting stored in the postmeta table that is no longer needed.  This is a simple MySQL command that can...

Custom Gravity Forms Popup Error Message

Here is a sample of code on how to show a custom popup error message. functions.php add_filter( 'gform_validation_message_3', 'sw_gf_validation_message', 10, 2 ); function sw_gf_validation_message( $validation_message ) { add_filter( 'wp_footer', 'sw_gf_js_error' ); }...