@@ -45,7 +45,7 @@ The return value of all the functions is the number of callbacks removed.
4545``` php
4646function remove_object_hook(
4747 string $hook,
48- string $targetClassName,
48+ class- string $targetClassName,
4949 ?string $methodName = null,
5050 ?int $targetPriority = null,
5151 bool $removeStaticCallbacks = false
@@ -173,7 +173,7 @@ The signature is:
173173``` php
174174function remove_static_method_hook(
175175 string $hook,
176- string $targetClassName,
176+ class- string $targetClassName,
177177 ?string $targetMethodName = null,
178178 ?int $targetPriority = null
179179): int
@@ -260,7 +260,7 @@ The signature:
260260``` php
261261function remove_invokable_hook(
262262 string $hook,
263- string $targetClassName,
263+ class- string $targetClassName,
264264 ?int $targetPriority = null
265265) : int;
266266```
@@ -305,8 +305,8 @@ When passing an object instance, it removes all the hook callbacks using that ex
305305When passing a class name, it removes all the hook callbacks using that class (regardless the instance).
306306
307307Static methods are removed when:
308- - an object instance is passed and ` $removeStaticCallbacks ` param is ` true `
309- - a class name is passed and ` $removeStaticCallbacks ` param is _ not _ ` false `
308+ - an object instance is passed and ` $removeStaticCallbacks ` param _ is _ ` true `
309+ - a class name is passed and ` $removeStaticCallbacks ` param _ is not _ ` false `
310310
311311### Usage Example
312312
@@ -348,6 +348,8 @@ _Object Hooks Remover_ is a [Composer](https://getcomposer.org) package, install
348348
349349It has no dependencies, requires ** PHP 7.4+** .
350350
351+ It is tested and guaranteed to with WP 5.9+, but _ should_ work, at least, with WP 5.3+ (which is the first version officially supporting PHP 7.4).
352+
351353
352354---
353355
0 commit comments