Introduction
Hooks let you change how WordPress works without changing its core. Priority and arguments help control when and how your code runs with hooks.
You want to run your code before or after other code hooked to the same action or filter.
You need to pass extra information to your hooked function.
You want to make sure your code runs in a specific order among many hooked functions.