PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | src/ai/content-planner/domain/post.php +16 -0 27.6 → trunk View file →
@@ -104,5 +104,21 @@
104 104 }
105 105
106 106 return $data;
107 107 }
108 +
109 + /**
110 + * Returns the minimal array representation suitable for the REST response.
111 + *
112 + * Only includes fields the frontend round-trips into the get_outline call.
113 + * Excludes editor-only metadata (focus keyphrase, cornerstone, schema type)
114 + * that must not cross the REST boundary.
115 + *
116 + * @return array<string, string> The minimal post payload.
117 + */
118 + public function to_minimal_array(): array {
119 + return [
120 + 'title' => $this->title,
121 + 'description' => $this->description,
122 + ];
123 + }
108 124 }