chore: introduced remove_filter with types - #14
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds the removeFilter method to HooksWrapper and documents it as a static method in the Hooks class docblock, providing a wrapper around WordPress's remove_filter() function. There are no review comments, and the changes look clean and correct, so I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
Pull request overview
Adds a remove_filter() wrapper to the hooks utility layer so consumers can remove previously registered WordPress filters through the same wrapper/forwarder API used for add/apply.
Changes:
- Introduced
HooksWrapper::removeFilter()as a thin wrapper around WordPressremove_filter(). - Exposed
removeFilter()via theHooksstatic forwarder by extending the@methodannotations.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Hooks/HooksWrapper.php | Adds removeFilter() wrapper method with PHPDoc describing parameters/return. |
| src/Hooks/Hooks.php | Adds @method static bool removeFilter(...) to advertise the new forwarded API. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.