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
- Create a child theme and override a template file
- Write a small plugin using add_action and add_filter hooks
- Explain how the template hierarchy picks a template
- Register a custom post type and fields
- Fetch posts from the REST API and use them in a separate front end
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