| @@ -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) |
| @@ -213,9 +222,12 @@ | ||
| 213 | 222 | public static function get_supported_schema_types(string $context_type = 'site'): array { |
| 214 | 223 | $all_types = [ |
| 215 | 224 | 'Article', 'Product', 'Organization', 'LocalBusiness', |
| 216 | 225 | 'Person', 'WebSite', 'FAQPage', 'SoftwareApplication', |
| 217 | - 'Event', 'HowTo', 'Review', 'VideoObject' | |
| 226 | + 'Event', 'HowTo', 'Review', 'VideoObject', | |
| 227 | + // The WebPage family, which the per-page selector can now offer | |
| 228 | + // (#624). Kept last so an existing site's ordering is unchanged. | |
| 229 | + 'WebPage', 'AboutPage', 'ContactPage', 'ProfilePage' | |
| 218 | 230 | ]; |
| 219 | 231 | |
| 220 | 232 | // Context-specific filtering can be added here if needed |
| 221 | 233 | return $all_types; |
| @@ -268,9 +280,10 @@ | ||
| 268 | 280 | 'enable_article_schema', |
| 269 | 281 | 'enable_product_schema', |
| 270 | 282 | 'enable_local_business', |
| 271 | 283 | 'enable_faq_schema', |
| 272 | - 'enable_howto_schema' | |
| 284 | + 'enable_howto_schema', | |
| 285 | + 'enable_accordion_faq_schema' | |
| 273 | 286 | ]; |
| 274 | 287 | } |
| 275 | 288 | |
| 276 | 289 | /** |