Hi John,
You can use the setting js_options
to change the yearRange
, for example
'fields' => [
[
'name' => __( 'Date', 'your-text-domain' ),
'id' => $prefix . 'date_9m5vr96jdte',
'type' => 'date',
'js_options' => [
'yearRange' => '1800:2022',
],
],
]
In the builder: https://share.getcloudapp.com/E0uobjQ5
Refer to the documentation https://docs.metabox.io/fields/date/#settings
https://api.jqueryui.com/datepicker/#option-yearRange