| @@ -88,8 +88,17 @@ | ||
| 88 | 88 | // Content schema settings (site-wide only) |
| 89 | 89 | 'enable_breadcrumbs_schema' => true, |
| 90 | 90 | 'enable_local_business' => false, |
| 91 | 91 | |
| 92 | + // Read an Oxygen or Breakdance accordion as FAQ content. Off, and it | |
| 93 | + // has to stay off by default: those are the builders' own elements | |
| 94 | + // rather than a ThinkRank FAQ module, so an accordion may hold | |
| 95 | + // questions or may hold product specifications, and turning this on | |
| 96 | + // for every existing site would publish FAQPage markup nobody asked | |
| 97 | + // for. ThinkRank reads and reports the accordion either way; this | |
| 98 | + // switch only decides whether it reaches the schema graph (#831). | |
| 99 | + 'enable_accordion_faq_schema' => false, | |
| 100 | + | |
| 92 | 101 | // Removed post/page-specific schema settings (Product, Event, Article, Software Application, HowTo, FAQ) |
| 93 | 102 | // These are now handled only at the post/page level via metabox |
| 94 | 103 | |
| 95 | 104 | // Person schema settings (site-wide) |
| @@ -224,8 +233,25 @@ | ||
| 224 | 233 | return $all_types; |
| 225 | 234 | } |
| 226 | 235 | |
| 227 | 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 | + /** | |
| 228 | 254 | * Get validation level options |
| 229 | 255 | * |
| 230 | 256 | * @since 1.0.0 |
| 231 | 257 | * |
| @@ -271,9 +297,10 @@ | ||
| 271 | 297 | 'enable_article_schema', |
| 272 | 298 | 'enable_product_schema', |
| 273 | 299 | 'enable_local_business', |
| 274 | 300 | 'enable_faq_schema', |
| 275 | - 'enable_howto_schema' | |
| 301 | + 'enable_howto_schema', | |
| 302 | + 'enable_accordion_faq_schema' | |
| 276 | 303 | ]; |
| 277 | 304 | } |
| 278 | 305 | |
| 279 | 306 | /** |