Add addFilter() to automations WP function definitions

[PREMIUM-289]
This commit is contained in:
alex-mpoet
2024-12-30 16:55:30 +03:00
committed by Rostislav Wolný
parent 65728f6315
commit 8ca2e50321

View File

@@ -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