Skip to content

chore: introduced remove_filter with types - #14

Merged
safwanbin2 merged 1 commit into
mainfrom
chore/remove-filter
Jul 19, 2026
Merged

chore: introduced remove_filter with types#14
safwanbin2 merged 1 commit into
mainfrom
chore/remove-filter

Conversation

@safwanbin2

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 18, 2026 10:45

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 WordPress remove_filter().
  • Exposed removeFilter() via the Hooks static forwarder by extending the @method annotations.

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.

@safwanbin2
safwanbin2 requested a review from abdul-kaioum July 18, 2026 10:48
safwanbin2 added a commit to bit-apps-pro/bit-crm-sales-marketing-automation that referenced this pull request Jul 18, 2026
@safwanbin2
safwanbin2 merged commit 93e3fc6 into main Jul 19, 2026
1 check passed
@safwanbin2
safwanbin2 deleted the chore/remove-filter branch July 19, 2026 05:39
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.

3 participants