Skip to content
Docs
Get RestroPress

Actions

Updated 1 min read

Actions let you run your own code at a specific moment: when an item is added to the cart, before the checkout form is shown, after an order is paid, when an order's status changes. Register a callback with add_action( 'hook_name', 'your_function', $priority, $accepted_args ). An action callback does not return anything.

Pages below are listed alphabetically. Names with a part in braces, such as rpress_{$action}, are built at run time. The page explains which values the placeholder can take. Some actions are dispatched from a request: see URL and form actions and AJAX actions.

All 461 actions

Was this page helpful?