Skip to content

Commit e2a2b31

Browse files
committed
fix: typos in function name
Hooks::apply function doesn't exist. It should be Hooks::applyFilter.
1 parent 79e0a26 commit e2a2b31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/Capabilities.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ public static function check($cap, ...$args)
1313

1414
public static function filter($cap, $default = 'manage_options')
1515
{
16-
return static::check(Hooks::apply($cap, $default));
16+
return static::check(Hooks::applyFilter($cap, $default));
1717
}
1818
}

0 commit comments

Comments
 (0)