Disable Limit Dates on Gravity View Entry Edit

Code

Filename: gpld-disable-on-gv-edit.php

<?php
/**
 * Gravity Perks // Limit Dates // Disable Limit Dates on Gravity View Entry Edit
 * https://gravitywiz.com/documentation/gravity-forms-limit-dates/
 */
add_filter( 'gpld_has_limit_dates_enabled', function( $is_enabled ) {
	if ( is_callable( 'gravityview' ) && gravityview()->request->is_edit_entry() ) {
		$is_enabled = false;
	}
	return $is_enabled;
} );

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.