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-list.php +14 -0 27.6 → trunk View file →
@@ -37,5 +37,19 @@
37 37 }
38 38
39 39 return $result;
40 40 }
41 +
42 + /**
43 + * Returns the minimal array representation suitable for the REST response.
44 + *
45 + * @return array<array<string, string>> The posts as minimal arrays.
46 + */
47 + public function to_minimal_array(): array {
48 + $result = [];
49 + foreach ( $this->posts as $post ) {
50 + $result[] = $post->to_minimal_array();
51 + }
52 +
53 + return $result;
54 + }
41 55 }