Title: Plugin: Sensei &#8211; Remove action via another plugin
Last modified: August 30, 2016

---

# Plugin: Sensei – Remove action via another plugin

 *  [cwbmuller](https://wordpress.org/support/users/cwbmuller/)
 * (@cwbmuller)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-sensei-remove-action-via-another-plugin/)
 * I am trying to remove an action within an existing WooThemes Sensei Class:
 *     ```
       global $woothemes_sensei;
       remove_action( 'sensei_single_course_modules_before', array( $woothemes_sensei->modules, 'course_modules_title' ),20 );
       remove_action( 'sensei_single_course_modules_content', array( $woothemes_sensei->modules, 'course_module_content' ),30 );
       ```
   
 * I am not sure what I am doing wrong? I think I am calling the correct class with
   the global variable. And the labels are correct? I’ve tried various priorities.
 * Thank you!

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

 *  [Dion](https://wordpress.org/support/users/diondesigns/)
 * (@diondesigns)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-sensei-remove-action-via-another-plugin/#post-6360608)
 * [http://codex.wordpress.org/Function_Reference/remove_action](http://codex.wordpress.org/Function_Reference/remove_action)
   
   [http://codex.wordpress.org/Function_Reference/remove_filter](http://codex.wordpress.org/Function_Reference/remove_filter)
 * There is additional important information in the remove_filter() documentation
   that applies to remove_action(), so make sure to read both.
 *  [ColinD](https://wordpress.org/support/users/colind/)
 * (@colind)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/plugin-sensei-remove-action-via-another-plugin/#post-6360788)
 * To remove an action from my theme I had to do
 *     ```
       /**
        * Remove Sensei Comments Action
        *
        */
       function themename_sensei_remove_comments(){
       	remove_action( 'sensei_comments', array(Sensei()->frontend, 'sensei_output_comments' ));
       }
   
       add_action( 'sensei_comments', 'themename_sensei_remove_comments', 5);
       ```
   
 * The priority of my add_action seemed to be the key.

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

The topic ‘Plugin: Sensei – Remove action via another plugin’ is closed to new replies.

## Tags

 * [WooThemes](https://wordpress.org/support/topic-tag/woothemes/)

 * 2 replies
 * 3 participants
 * Last reply from: [ColinD](https://wordpress.org/support/users/colind/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/plugin-sensei-remove-action-via-another-plugin/#post-6360788)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
