WpWodify\Loader::componentify
Takes string arguments, and turns them into an standardized array.
Signature
protected function componentify(string
$hook,
mixed
$component,
string
$callback )
Parameters
$hook
—
string
- the name of a wordpress hook
$component
—
mixed
- A class instance.
$callback
—
string
- The name of a method to call on the component.
Returns
- array
- The resulting array.
Test Coverage
Information
- Coverage: 6/6 Lines (100%)
- Tests: 1
- Passed: 1 (100%)
Tests
- [ PASSED ] — WpWodify\LoaderTest::test_componentify with data set #0