Skip to content

Conversation

@zamanq
Copy link
Contributor

@zamanq zamanq commented Jan 23, 2026

Description of the Change

Added the WP Admin notice for the legacy settings deprecation when the hook is in use. This is the Phase 1 of multiple future phases which will eventually remove the legacy settings code from the plugin. The notice is dismissible and can be made non-dismissible if needed.

In WP Admin Dashboard:
Screenshot 2026-01-23 at 10 03 52 AM

In Classifai Settings page:
Screenshot 2026-01-23 at 10 03 33 AM

Closes #1030

How to test the Change

  • To test this enable the hook add_filter( 'classifai_use_legacy_settings_panel', '__return_true' ); in active theme's functions.php file.
  • Upon enabling visiting the WordPress dashboard will display the deprecation notice for the legacy settings panel

Changelog Entry

Added - WordPress dashboard deprecation notice for legacy classifai settings panel

Credits

Props @zamanq

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • All new and existing tests pass.

@zamanq zamanq requested review from a team, dkotter and jeffpaul as code owners January 23, 2026 04:06
@github-actions github-actions bot added this to the 3.8.0 milestone Jan 23, 2026
@github-actions github-actions bot added the needs:code-review This requires code review. label Jan 23, 2026
@github-actions
Copy link

github-actions bot commented Jan 23, 2026

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check


### Deprecated

- The legacy settings screen (enabled via the `classifai_use_legacy_settings_panel` filter) is now formally deprecated and scheduled for removal in a future release. An admin notice will be displayed when this filter is active. Please migrate to the new React-based settings experience (props [@zamanq](https://github.com/zamanq), [@jeffpaul](https://github.com/jeffpaul) via [#1036](https://github.com/10up/classifai/pull/1036)).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for future PRs, we generally don't update the changelog here and instead we make sure we have a changelog entry within the PR description. When doing a release, I'll pull all those changelog entries and update the changelog at that point

@dkotter dkotter merged commit 5a721c8 into develop Jan 27, 2026
17 of 18 checks passed
@dkotter dkotter deleted the feature/deprecate-legacy-settings branch January 27, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:code-review This requires code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate and remove legacy settings screen (pre-3.2.0)

2 participants