Skip to content

Add support for deprecated hooks#22

Merged
akirk merged 1 commit intoakirk:mainfrom
obenland:add-deprecated-hook-support
Nov 13, 2025
Merged

Add support for deprecated hooks#22
akirk merged 1 commit intoakirk:mainfrom
obenland:add-deprecated-hook-support

Conversation

@obenland
Copy link
Copy Markdown
Contributor

@obenland obenland commented Oct 3, 2025

Suggested Changes

  • Detects deprecated hooks with version and replacement information.
  • Generates deprecation warnings in documentation with version info and replacement string.
  • Shows deprecated hooks with strikethrough formatting in index.
  • Adds tests and documents expected output.

This commit adds comprehensive support for detecting and documenting deprecated WordPress hooks that use do_action_deprecated() and apply_filters_deprecated().

Features:
- Detects deprecated hooks with version and replacement information
- Generates deprecation warnings in documentation with version info and replacement guidance
- Shows deprecated hooks with strikethrough formatting in index
- Handles all deprecation scenarios: with/without version, with/without replacement
- Comprehensive test coverage with expected output verification
@akirk akirk merged commit 9f4d7b3 into akirk:main Nov 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants