| @@ -417,8 +417,23 @@ | ||
| 417 | 417 | * |
| 418 | 418 | * @param int $post_id Post being resolved. |
| 419 | 419 | * @return array<int,mixed> Elements, or [] when Bricks renders nothing here. |
| 420 | 420 | */ |
| 421 | + /** | |
| 422 | + * The builder meta keys, for callers that need to inspect the raw storage | |
| 423 | + * rather than the text extracted from it. | |
| 424 | + * | |
| 425 | + * The SEO Analyzer reads these to answer "is there a ThinkRank FAQ element | |
| 426 | + * on this post?", which is a question about the stored tree, not about the | |
| 427 | + * words in it (#686). | |
| 428 | + * | |
| 429 | + * @since 2.7.0 | |
| 430 | + * @return string[] | |
| 431 | + */ | |
| 432 | + public static function builder_meta_keys(): array { | |
| 433 | + return self::BUILDER_META_KEYS; | |
| 434 | + } | |
| 435 | + | |
| 421 | 436 | public static function bricks_tree(int $post_id): array { |
| 422 | 437 | if (array_key_exists($post_id, self::$bricks_trees)) { |
| 423 | 438 | return self::$bricks_trees[$post_id]; |
| 424 | 439 | } |