{"record":{"id":"598781012ab23c46","repo":"gatsbyjs/gatsby","slug":"plugin-option-filter-name-didn-t-return-a-filte","errorCode":null,"errorMessage":"Plugin option filter ${name} didn't return a filtered options object","messagePattern":"Plugin option filter (.+?) didn't return a filtered options object","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts","lineNumber":162,"sourceCode":"  optionsProcessors.forEach(({ test, processor, name }) => {\n    if (!name) {\n      helpers.reporter.panic(\n        formatLogMessage(\n          `Plugin option filter is unnamed\\n\\n${test.toString()}\\n\\n${processor.toString()}`\n        )\n      )\n    }\n\n    if (test({ helpers, userPluginOptions })) {\n      const filteredUserPluginOptions = processor({\n        helpers,\n        userPluginOptions,\n      })\n\n      if (filteredUserPluginOptions) {\n        userPluginOptions = filteredUserPluginOptions\n      } else {\n        helpers.reporter.panic(\n          formatLogMessage(\n            `Plugin option filter ${name} didn't return a filtered options object`\n          )\n        )\n      }\n    }\n  })\n\n  return userPluginOptions\n}\n","sourceCodeStart":144,"sourceCodeEnd":173,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/8b06340921ffdf23125a365b9c9923690cb62ce6/packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts#L144-L173","documentation":"Error \"Plugin option filter ${name} didn't return a filtered options object\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-source-wordpress/src/steps/process-and-validate-plugin-options.ts:162 when the library encounters an invalid state.","commonSituations":"Occurs when a named plugin option filter does not return a filtered options object. Ensure the filter function returns the (modified) options object.","solutions":["Update the named filter's processor function so it returns the filtered options object.","Check the processor does not mutate and return undefined; return the modified options explicitly."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8b06340921ffdf23125a365b9c9923690cb62ce6","analyzedAt":"2026-08-13T02:36:21.405Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}