Title: Priority on remove_action
Last modified: August 22, 2016

---

# Priority on remove_action

 *  Resolved [Gooly](https://wordpress.org/support/users/gooly/)
 * (@gooly)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/priority-on-remove_action/)
 * Just a general question regarding remove_action.
    If I hook up a function, I 
   use add_action, and I can add a priority to it. Very useful and very clear. No
   problem. But my question is; if I un-hook a function with remove_action, I can
   optionally give a priority too, and as far as I understood, it should be the 
   same priority as given when the action was hooked.
 * But why would I want to give a priority when removing it? I just want it to be
   removed, I don’t care about it’s initial priority. (Do I?)
    In other words; what
   is the reason of giving a (initial) priority when removing an action?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/priority-on-remove_action/#post-5799556)
 * Theoretically you could add a function to a hook twice at two different priorities,
   and might only want to remove one?
 *  Thread Starter [Gooly](https://wordpress.org/support/users/gooly/)
 * (@gooly)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/priority-on-remove_action/#post-5799559)
 * That makes sense JakePT. Thanks!
    (I asked this question on some more places 
   and this is the only answer not saying: “I don’t know, I just do it” 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Priority on remove_action’ is closed to new replies.

## Tags

 * [add_action](https://wordpress.org/support/topic-tag/add_action/)
 * [priority](https://wordpress.org/support/topic-tag/priority/)
 * [remove_action](https://wordpress.org/support/topic-tag/remove_action/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 2 replies
 * 2 participants
 * Last reply from: [Gooly](https://wordpress.org/support/users/gooly/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/priority-on-remove_action/#post-5799559)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
