Thread Starter
cris18
(@cris18)
Thank you for your fast answer, now it is ok the code, but I have no dropdown years or month with calendar birthday with it 🙁
`add_filter( ‘yikes-mailchimp-datepicker-options’, ‘yikes_mailchimp_customize_datepicker_options’, 10, 2 );
function yikes_mailchimp_customize_datepicker_options( $options, $form_id ) {
if ( $form_id === 3 ) {
$options[‘change_year’] = true;
$options[‘change_month’] = true;
}}
I have 2 forms (id=1 and id=3), one for phone and another for pc, I put both id in separated codes, is there any mistake that i did not see it?
Thread Starter
cris18
(@cris18)
Thank you very much dor your complete answer, onlyt I have a question else? I should to write the next code:
add_filter( 'yikes-mailchimp-datepicker-options', 'yikes_mailchimp_customize_datepicker_options', 10, 2 );
function yikes_mailchimp_customize_datepicker_options( $options, $form_id ) {
if ( $form_id === 3 ) {
$options['change_year'] = true;
$options['change_month'] = true;
}
I have an error when I use it