7 | | 2. Extensibility: As we expand FSE, we may add alternative prerequisites to determine if a theme is a block theme (we changed `block-templates` to `templates` for example). By adding this filter, PRs to the Gutenberg repo, or feature plugins, can add the new prerequisites and write tests for them without having to modify Core. This would also allow manual testing to be carried out by a wider audience without each tester needing to make manual changes to `WP_Theme` - a plugin could simply add a setting to enable an experimental feature, which in turn would add a filter callback with additional ways to indicate a block theme. |
| 7 | 2. Extensibility: As we expand FSE, we may add alternative prerequisites to determine if a theme is a block theme (we changed `block-templates` to `templates` for example). By adding this filter, PRs to the Gutenberg repo, or feature plugins, can add the new prerequisites and write tests for them without having to modify Core. This would also allow manual testing to be carried out by a wider audience without each tester needing to make manual changes to `WP_Theme` - a plugin could simply add a setting to enable an experimental feature, which in turn would add a filter callback with additional ways to determine a block theme. |