feat(pages): Page Editor module fixing and improvements

This commit is contained in:
Dwindi Ramadhana
2026-06-04 15:10:37 +07:00
parent fb1a6c40ef
commit 54a3a15f68
21 changed files with 489 additions and 368 deletions

View File

@@ -446,11 +446,15 @@ class PagesController
$rendered_sections = self::resolve_sections_for_post($template['sections'], $post, $type);
}
// Get SPA settings
$settings = get_option('woonoow_appearance_settings', []);
return new WP_REST_Response([
'type' => 'content',
'cpt' => $type,
'post' => $post_data,
'seo' => $seo,
'effective_container_width' => ($settings['general']['container_width'] ?? 'boxed') ?: 'boxed',
'template' => $template ?: ['sections' => []],
'rendered' => [
'sections' => $rendered_sections,