Expliquez nous en quelques lignes votre projet.
= 6 ) {
$min_date = $field_options['minDate'];
$day_padding = $day_number === 6 ? 2 : 1;
$modified_min_date = strtotime( "+{$day_padding} days", strtotime( $min_date ) );
if ( $min_date < $modified_min_date ) {
// phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
$field_options['minDate'] = date( 'm/d/Y', $modified_min_date );
}
}
return $field_options;
} );