Docs: Enhance feature enable/disable filter documentation with implementation details#69
Conversation
- Add detailed explanation of how ai_feature_{}_enabled filter works
- Include code reference to Abstract_Feature::is_enabled() implementation
- Add more practical use case examples (user roles, environment-based)
- Explain the feature initialization flow
- Clarify when and why to use the filter
Improves developer experience by providing clearer guidance on feature customization.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #69 +/- ##
==========================================
Coverage 46.89% 46.89%
Complexity 208 208
==========================================
Files 19 19
Lines 1271 1271
==========================================
Hits 596 596
Misses 675 675
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
Enhances the documentation for the
ai_feature_{$feature_id}_enabledfilter to provide better understanding of the feature enable/disable system.Changes
Why This Change?
The current documentation shows usage examples but doesn't adequately explain:
This improvement helps developers understand not just what the filter does, but how it works and when to use it.
Type of Change
Testing
Related Issues
Closes #68