Created
February 17, 2020 15:49
-
-
Save plugin-republic/9738e597d2276e61a8fa016d71b85868 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Set the minimum acceptable date to 10 days in the future | |
*/ | |
function prefix_date_field_params( $params, $item ) { | |
$params[] = '"minDate" : 10';; | |
return $params; | |
} | |
add_filter( 'pewc_filter_date_field_params', 'prefix_date_field_params', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment