- 'widget' context should be replaced by 'widgets' context in lib/hooks.php - I would also move the '!' operator outside of the parenthesis because I don't know which operator will be executed first between '!' and 'instanceof' Following code: ``` if ((!$entity instanceof ElggObject) || elgg_in_context('widget')) { return; } ``` should be replaced by: ``` if (!($entity instanceof ElggObject) || elgg_in_context('widgets')) { return; } ```