Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
add_action( 'jet-engine/forms/booking/notification/insert_post', function( $notification, $manager ) {
if ( ! empty( $manager->data['_date_field'] ) ) {
$manager->data['_date_field'] = strtotime( $manager->data['_date_field'] );
}
}, 0, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment