Change the “Next Page with Errors” Button Label

Code

Filename: gpmpn-change-the-next-page-with-errors-button-label.php

<?php
/**
 * Gravity Perks // Multi-Page Navigation // Change the “Next Page with Errors” Button Label
 * https://gravitywiz.com/documentation/gravity-forms-multi-page-navigation/
 */
add_filter( 'gpmpn_frontend_labels', function( $labels ) {
	// Change next page with errors button to be more verbose.
	$labels['nextPageWithErrors'] = 'Skip to the next page with errors';
	return $labels;
} );

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.