WooCommerce Docs

Documentation, Reference Materials, and Tutorials for your WooCommerce products


Hooks: Action and Filter reference

Introduction ↑ Back to Top

Hooks are provided by WordPress and WooCommerce to allow your plugin or theme to ‘hook into’ the code; that is, to call functions in your plugin at specific times, and thereby set your plugin in motion. There are two kinds of hooks:

  1. Actions: Actions are the hooks that the WordPress core launches at specific points during execution, or when specific events occur.
  2. Filters: Filters are the hooks that WordPress launches to modify text of various types before adding it to the database or sending it to the browser screen.

For a more in depth introduction to Hooks and Filters see: Introduction to hooks: actions and filters

API Documentation ↑ Back to Top

For a comprehensive view of the WooCommerce API, see the API Documentation.

Hooks and Filters ↑ Back to Top

For details on what the hooks and filters do, reference the WooCommerce Hooks Reference.

Back to the top