Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hey Josiah, I feel like this is my answer to you every time: there’s no way to do this by default but you can use a filter!

    The filter name is yikes-mailchimp-MERGE-TAG-default-value. Replace MERGE-TAG with your field’s name… you know this by now!

    add_filter( 'yikes-mailchimp-MERGE-TAG-default-value', 'yikes_mailchimp_default_date_to_today', 10, 3 );
    
    function yikes_mailchimp_default_date_to_today( $default_value, $field, $form_id ) {
    
    	// This is the date format mm/dd/yyyy
    	return date( 'm/d/Y' );
    }

    Cheers,
    Kevin.

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    You’re correct, I should have been able to figure that out.
    Anyway, it works fine. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Setting default date field value to Today’ is closed to new replies.