Repository navigation
Add beta feature settings for datastore, ACF AI, schema - #539
faisalahammad wants to merge 1 commit into
Conversation
|
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 Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
ac4e870 to
74070e5
Compare
|
We do have already this done from ACF, don't we? |
|
@cbravobernal ACF has the same features, but in ACF they are only on with a PHP filter ( This PR adds the toggles to the Beta Features page, as asked in #433. The filters still work the same way. The toggle is one more way to turn each feature on. I also merged the latest trunk into this branch. |
|
@faisalahammad I merged the fix you did on e2e. Please update with trunk again ( rebase preferred ). |
Expose enable_datastore, enable_acf_ai, and enable_schema as toggles on the Beta Features admin page. A globally loaded bridge maps each stored toggle to its existing runtime filter, so PHP filters keep working alongside the new settings. Fixes WordPress#433
86d5c67 to
ee40257
Compare
|
@cbravobernal I rebased the branch on the latest trunk. It is now one commit on top of trunk, with no merge commit. The PR code did not change. The rebase also brings in your e2e fix from #572, so the WP trunk e2e shard should pass now. |
Adds three new entries to the Beta Features admin page so the features that currently require a PHP filter can be enabled by an administrator from wp-admin:
acf/settings/enable_datastore)acf/settings/enable_acf_ai)acf/settings/enable_schema)Each feature gets a class under
includes/admin/beta-features/following the existing editor sidebar pattern, andregister_beta_features()now registers them. A small globally loaded file,includes/beta-features.php, bridges each stored option to its runtime filter with OR semantics, so existing PHP filters keep working alongside the new toggles and a later filter callback can still override the stored option. The bridge is included during normal plugin bootstrap (not admin-only) because these settings also affect frontend and REST execution.The uninstall routine now deletes all four beta feature options.
Closes #433
Use of AI Tools
This pull request was written with AI tooling assistance (Claude Code) and reviewed and tested by me.