app('wp.theme') throws Class wp.theme does not exist
ligne13 opened this issue · comments
Maxime Freschard commented
HI,
when calling app('wp.theme') from the register method of my Hook I get the fatal error:
ReflectionException thrown with message "Class wp.theme does not exist"
thanks.
Julien Lambé commented
This is not an issue, the class has not yet been registered because Hook classes are processed way before the theme is even loaded.