Hooks: Actions and Filters

Please note that this is a Developer level document. If you are unfamiliar with code/templates and resolving potential conflicts, select a WooExpert or Developer for assistance. We are unable to provide support for customizations under our Support Policy.

Sensei comes with several hooks that can be used to change the way it behaves. These hooks can in turn be separated into two categories:

  • Actions
  • Filters

If you are not familiar with how actions and filters work in WordPress, this guide can bring you up to speed.

A current list of all action and filter hooks can be found in our Sensei Developer Reference docs.

Code Examples

Here are some code examples using some of the Sensei filter hooks. The code in these examples can be added to your theme’s functions.php file, or loaded via a third-party plugin like Functionality.

Disable the default Sensei styles