From 1c87535be192e666131f7728cc1629cf1152a506 Mon Sep 17 00:00:00 2001 From: veryspry Date: Thu, 19 Dec 2024 16:16:07 +0100 Subject: [PATCH] `gcn-radio-button-to-date-property-mapping.php`: Added snippet to map radio fields to Notion Date properties. --- ...-radio-button-to-date-property-mapping.php | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 gc-notion/gcn-radio-button-to-date-property-mapping.php diff --git a/gc-notion/gcn-radio-button-to-date-property-mapping.php b/gc-notion/gcn-radio-button-to-date-property-mapping.php new file mode 100644 index 000000000..cfcf6c969 --- /dev/null +++ b/gc-notion/gcn-radio-button-to-date-property-mapping.php @@ -0,0 +1,51 @@ +format( 'Y-m-d' ) : ''; + + $page_data['properties'][ $property_id ] = array( + 'date' => array( + 'start' => $iso_date, + ), + ); + } + + return $page_data; +}, 10, 4 );