Filter
Attribute class as a wrapper around add_filter.
- Full name:
\CEKW\WpPlugin\Attribute\Filter
Table of contents
Properties
| Name | Type | Description |
|---|---|---|
| hookName | string | The name of the filter to add the callback to. |
| priority | int | Used to specify the order in which the functions associated with a particular filter are executed. Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the filter. |
| acceptedArgs | int | The number of arguments the function accepts. |
Methods
__construct
Filter::__construct(string hookName, int priority = 10, int acceptedArgs = 1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| hookName | string | Â |
| priority | int | Â |
| acceptedArgs | int | Â |