CMB2 datepicker - overwrite default values

379 views Asked by At

according to the CMB2 document I can use the following parameter:

'date_format' => __( 'd-m-Y', 'cmb2' )

it seems that it ignore it

checking the code I see that there is a function for localized the datepicker parameters but I did not manage doing it

1

There are 1 answers

0
Chris On

Did you try

'date_format' => 'd-m-Y'

because __() is searching for a localized string of course