Title: remove action not working
Last modified: October 5, 2016

---

# remove action not working

 *  [Pamela](https://wordpress.org/support/users/infoknutsford-softwarecouk/)
 * (@infoknutsford-softwarecouk)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/remove-action-not-working/)
 * I am trying to remove an action but it isn’t being removed
 * This is what I have in functions.php
 *     ```
       add_action( 'sensei_single_quiz_questions_after', 'remove_action_buttons', 10, 0 );
   
       function remove_action_buttons() {
   
           	remove_action( 'sensei_single_quiz_questions_after', array( 'Sensei_Quiz', 'action_buttons' ), 10, 0  );
   
       }
   
       add_action( 'sensei_single_quiz_questions_after', 'new_action_buttons' );
   
       function new_action_buttons() {
       ```
   
 * The original add action is
 * add_action( ‘sensei_single_quiz_questions_after’, array( ‘Sensei_Quiz’, ‘action_buttons’),
   10, 0 );
 * It is definitely going into the function that calls the remove but the buttons
   are still there on the page. It calls the replacement ok and adds those buttons.
   Thanks

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

 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/remove-action-not-working/#post-8254783)
 * I think to remove an action with `remove_action()` it needs to be called with
   the same parameters (except the priority parameter)
 *     ```
       remove_action( 'sensei_single_quiz_questions_after', 'new_action_buttons' );
       ```
   
 *  Thread Starter [Pamela](https://wordpress.org/support/users/infoknutsford-softwarecouk/)
 * (@infoknutsford-softwarecouk)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/remove-action-not-working/#post-8254910)
 * Nope that doesn’t work
 *  Thread Starter [Pamela](https://wordpress.org/support/users/infoknutsford-softwarecouk/)
 * (@infoknutsford-softwarecouk)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/remove-action-not-working/#post-8254934)
 * I presumed you meant
 * remove_action( ‘sensei_single_quiz_questions_after’, ‘action_buttons’ );
 * by the way.

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

The topic ‘remove action not working’ is closed to new replies.

## Tags

 * [remove action](https://wordpress.org/support/topic-tag/remove-action/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Pamela](https://wordpress.org/support/users/infoknutsford-softwarecouk/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/remove-action-not-working/#post-8254934)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
