Create CSV File using PHP

Came across this nice little bit of code to write a CSV file on the fly using PHP and grabbing the data from a MySQL database.  Thank you Stephen Morley for authoring a great little how to. Create Downloadable CSV File using PHP // output headers so that the file is...

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' ); }...

Customize the Added to Cart Message

So I ran into a request where the client was looking to have a Continue Shopping button after a product got added to the cart.  So in this example I used the wc_add_to_cart_message hook to add a continue shopping button below what normally got output.  You will also...