Update Priority.php

updated hook