diff --git a/Plugin.php b/Plugin.php index fbb0416..1e56c63 100644 --- a/Plugin.php +++ b/Plugin.php @@ -489,7 +489,7 @@ public static function getDynamicHookName( object $arg ) : ?string { // isn't actually supported by the wp-hooks-generator yet and will be handled as regular string there // just handle it generically here for the time being - if ( $arg instanceof PhpParser\Node\Expr\ConstFetch ) { + if ( $arg instanceof PhpParser\Node\Expr\ConstFetch || $arg instanceof PhpParser\Node\Expr\ClassConstFetch ) { return '{$variable}'; }