feat: backend preview logic

This commit is contained in:
2025-09-24 12:02:36 -04:00
parent cd8c98be20
commit cd4cf2e3e3
2 changed files with 49 additions and 164 deletions

View File

@@ -2,7 +2,7 @@
$preview_url = ( defined( 'NUXT_PUBLIC_SITE_URL' ) ? NUXT_PUBLIC_SITE_URL : 'https://cultureat.ca' ) . '/api/acf-preview';
$data = array(
'fieldGroupName' => get_row_layout(),
'value' => ccat_get_row_graphql_value(),
'value' => ccat_get_graphql_row_value(),
);
$result = wp_remote_post( $preview_url, array( 'body' => $data ) );
if ( is_wp_error( $result ) ) {