ActionsProxy

Proxy for interacting with WordPress actions and filters.


Description Description

This class should be used instead of directly accessing the WordPress functions, to ease unit testing.


Source Source

File: src/Proxies/ActionsProxy.php


			

Top ↑

Methods Methods

  • apply_filters — Calls the callback functions that have been added to a filter hook.
  • did_action — Retrieve the number of times an action is fired.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.