Skip to content

Commit fcba7bb

Browse files
committed
fix: AHM call fix
1 parent 5513e8c commit fcba7bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/Accessible_Hook_Methods.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ protected static function is_method_valid( string $classname, string $method ):
115115
*/
116116
protected static function get_registered_hooks( string $classname, string $method ): array {
117117
static::$hooks[ $classname ][ $method ] ??= \array_unique(
118-
\wp_list_pluck( static::get_manager()->get_hooks( $classname )[ $method ] ?? array(), 'tag' ),
118+
\wp_list_pluck( \xwp_hook_invoker()->get_hooks( $classname )[ $method ] ?? array(), 'tag' ),
119119
);
120120

121121
return static::$hooks[ $classname ][ $method ];

0 commit comments

Comments
 (0)