Set default date in datepicker on ACF

Share Now

// Adjust reminder_date default value
add_filter('acf/load_field/name=reminder_date', function ($field) {
    //$field['default_value'] = date('Ymd');
    $field['default_value'] = date('2022-10-14');
    
    return $field;
});
Picture of Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert