Customize Out of Stock Validation Message


Filename: gplc-customize-out-of-stock-validation-message.php

 * Gravity Perks // Limit Choices // Customize Out of Stock Validation Message
add_filter( 'gplc_out_of_stock_message', function( $out_of_stock_message, $form, $field, $inventory_data ) {
	return 'Sorry, friends. This item is no longer available.';
}, 10, 4 );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.