Search

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

Reference our API Documentation for the current code reference for WooCommerce Hooks.

Back to the top