Actions
An action is a place where plugins output HTML or react to events. Return values are printed at that place.
@hooks.add_action("order_created")
def notify(order, request=None, **kwargs):
...
Filters
A filter receives a value and returns it modified:
@hooks.add_filter("cart_shipping")
def free_from_100(cost, cart=None, **kwargs):
return 0 if cart.subtotal >= 100 else cost
Shortcodes
@hooks.add_shortcode("year")
def year(attrs, request=None):
return "2026"
In text: [year]. Attributes: [produkte limit=4 kategorie="kleidung"].
All available hooks are listed in the automatically generated hook reference.