WpWodify\Loader::add_filter
Adds an filter to the list of filters.
Signature
public function add_filter(string
$hook,
mixed
$component,
string
$callback )
Parameters
$hook
—
string
- The name of the hook to implement
$component
—
mixed
- The class instance which a callback will be called on.
$callback
—
string
- Name of the method to call on the component.
Returns
- Overlord
- Returns $this, for object-chaining.
Test Coverage
Information
- Coverage: 2/2 Lines (100%)
- Tests: 1
- Passed: 1 (100%)
Tests
- [ PASSED ] — WpWodify\LoaderTest::test_add_filter