Change Modal Title and Submit Button


Filename: gpnf-change-modal-title-and-submit-button.php

 * Gravity Perks // Nested Forms // Change Modal Title and Submit Button
// Update "123" to your form ID and "4" to your Nested Form field ID.
add_filter( 'gpnf_init_script_args_123_4', function( $args ) {
	$args['modalLabels']['title']      = 'Create New Child Entry';
	$args['modalLabels']['editTitle']  = 'Edit Child Entry';
	$args['modalLabels']['submit']     = 'Submit';
	$args['modalLabels']['editSubmit'] = 'Edit';
	return $args;
} );

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.