hook must be moved because include/constants.php is