Add addFilter() to automations WP function definitions
[PREMIUM-289]
This commit is contained in:
committed by
Rostislav Wolný
parent
65728f6315
commit
8ca2e50321
@@ -24,6 +24,10 @@ class WordPress {
|
||||
do_action($hookName, ...$arg);
|
||||
}
|
||||
|
||||
public function addFilter(string $hookName, callable $callback, int $priority = 10, int $acceptedArgs = 1): bool {
|
||||
return add_filter($hookName, $callback, $priority, $acceptedArgs);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $value
|
||||
* @param mixed ...$args
|
||||
|
Reference in New Issue
Block a user