Skip to content

Commit 49e9df1

Browse files
committed
Minor README improvement
[ci skip]
1 parent d57f625 commit 49e9df1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The return value of all the functions is the number of callbacks removed.
4545
```php
4646
function 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
174174
function 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
261261
function 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
305305
When passing a class name, it removes all the hook callbacks using that class (regardless the instance).
306306

307307
Static 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

349349
It 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

Comments
 (0)