Skip to main content

Custom Code for WordPresss

WordPress custom code is extending the platform with your own themes and plugins. It uses PHP, hooks called actions and filters, child themes, and the template hierarchy. The REST API exposes content as JSON, which supports headless setups where a separate front end, built for example with React, displays WordPress data.

Stage: Development · Part of the WordPress roadmap · Last reviewed 19 November 2026

What to learn in Custom Code

Custom Code interview questions

What is the difference between an action and a filter?

An action lets you run code at a specific point in WordPress execution, such as when a post is saved. A filter receives a value, lets you modify it and requires you to return it, such as changing content before display.

Why use a child theme?

A child theme inherits a parent theme and holds your changes separately. When the parent updates, your customisations are not overwritten, so you can safely modify templates and styles.

Where Custom Code fits in the WordPress roadmap

Custom Code belongs to the Development stage (intermediate level). Go custom.

Back to the full WordPress roadmap