Skip to content
Design Corner Knowledge Base ← Back to designcorner.co.ke
Knowledge Base

WordPress

Hook

Also known as: WordPress hook, action hook, filter hook

1 min read Updated November 10, 2026

Definition A hook is a place in software where other code can attach itself to add or change behaviour.

What it is

WordPress has action hooks, which run code at set moments, and filter hooks, which change data before it is used. Plugins and themes use them to customise the site without editing core files.

Why it matters for your business

Hooks let developers add features safely, and your changes survive WordPress updates.

Real-world example

A developer uses a filter hook to add a Kenya shilling symbol to every price in a WooCommerce shop.

Design Corner tip

Ask developers to use hooks or a child theme instead of editing core or theme files.