| @@ -233,8 +233,25 @@ | ||
| 233 | 233 | return $all_types; |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | 236 | /** |
| 237 | + * Schema types that belong to the site context. | |
| 238 | + * | |
| 239 | + * The site entities the Schema Manager deploys once for the whole site. | |
| 240 | + * Content types (Article, WebPage, Product, ...) are per post and are set | |
| 241 | + * in the metabox. Mirrors getSupportedSchemaTypes('site') in | |
| 242 | + * src/admin/config/schema-settings-config.js, which is the list the | |
| 243 | + * Site-Level Schema Types grid renders and Generate sends. | |
| 244 | + * | |
| 245 | + * @since 2.15.0 | |
| 246 | + * | |
| 247 | + * @return string[] Site-level schema types. | |
| 248 | + */ | |
| 249 | + public static function get_site_level_schema_types(): array { | |
| 250 | + return ['Organization', 'LocalBusiness', 'Person', 'WebSite']; | |
| 251 | + } | |
| 252 | + | |
| 253 | + /** | |
| 237 | 254 | * Get validation level options |
| 238 | 255 | * |
| 239 | 256 | * @since 1.0.0 |
| 240 | 257 | * |