generated from pascalmartineau/wp-skeleton
feat: backend preview logic
This commit is contained in:
@@ -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 ) ) {
|
||||
|
||||
Reference in New Issue
Block a user