See what's new

Testlify
Interview questions
Last updated on: 25 November 202613 min read

30 WordPress developer interview questions to ask

30 WordPress developer interview questions by skill area, with what strong answers show, red flags and a simple scorecard for hiring teams.

30 WordPress developer interview questions to ask

WordPress still runs a large share of the web, and a developer who only drags blocks around a page editor will not get far once a client needs a custom post type or a security fix. These 30 WordPress developer interview questions are grouped by the skills that separate a theme tinkerer from someone who can own a production build: PHP fundamentals, hooks, theme and plugin development, security, performance, and Gutenberg with the REST API. Hiring across a wider stack too? See our PHP developer interview questions and backend developer interview questions.

Summarise this post with:ChatGPTGeminiClaudeGrokPerplexity

TL;DR

  • A WordPress developer interview should test PHP fundamentals, hooks and the template hierarchy, theme and plugin development, security practices, performance work, and Gutenberg or REST API skills, not just "have you used WordPress."
  • The question $wpdb->prepare() versus raw SQL is one of the fastest ways to separate a safe developer from a risky one; anyone who cannot explain SQL injection here is a hiring risk.
  • Ask every candidate to walk through enqueuing a script the right way, not just "add a script tag": it reveals whether they understand the platform or just copy-paste fixes.
  • A candidate who cannot name a single caching strategy (object cache, transients, a caching plugin) will struggle on any site with real traffic.
  • Gutenberg block development and REST API questions matter more every year as agencies move away from page builders and toward custom blocks and headless setups.
  • Score answers on a simple 1 to 5 scale per skill area and weight security and performance highest for any client-facing or e-commerce build.
Build your dream team — Book a product demo

Why do WordPress developer interview questions need to go beyond trivia?

WordPress developer interview questions need to go beyond trivia because the title covers two very different jobs: someone who installs plugins and adjusts a theme, and someone who writes custom plugins, fixes performance problems, and hardens a site against attacks. Trivia questions like "what is a shortcode" only test memory. In my work reviewing hiring processes for agencies and in-house teams, the candidates who struggle most on the job are the ones who passed a trivia-heavy interview but never had to reason about WordPress as a PHP application with a specific architecture.

The six skill areas to test in a WordPress developer interview
Pro tip: Ask every candidate the same set of questions in the same order. It is the only way to compare answers fairly, and it stops the interview from drifting toward whatever the interviewer personally finds interesting.

What questions test PHP and WordPress fundamentals?

The five questions below check whether a candidate understands WordPress as PHP running inside a specific structure, not a black box.

  1. What happens, step by step, when a visitor requests a page on a WordPress site? A strong answer walks through index.php loading wp-load.php, WordPress parsing the URL into query variables, WP_Query running, and the template hierarchy picking the right template file.
  2. What is the difference between a post and a custom post type, and when would you create one? Strong candidates explain that posts are just one built-in post type, and that a custom post type (for example "testimonials" or "case studies") makes sense when content has its own fields, templates or admin workflow.
  3. How would you safely query the database for a value that comes from user input? Listen for $wpdb->prepare() with placeholders, never string concatenation of raw input into SQL.
  4. What is the difference between WP_Query, query_posts(), and get_posts()? A strong answer notes that query_posts() overwrites the main query and is discouraged, while WP_Query and get_posts() run secondary queries safely.
  5. Where does WordPress store site options and user data, and how would you read a saved option in code? Look for get_option() / update_option() for site-wide settings and get_user_meta() for per-user data, not direct database calls for routine reads.

Red flag: a candidate who cannot explain why raw string concatenation into a SQL query is dangerous should not be trusted with database access on a live site.

What questions test hooks, template hierarchy and core architecture?

WordPress is built around actions and filters. A candidate who cannot use them well will hack around the platform instead of working with it.

  1. What is the difference between an action and a filter, and can you give an example of each? A strong answer: actions let you run code at a point in execution (add_action('init', ...)); filters let you change a value before WordPress uses it (add_filter('the_content', ...)).
  2. How does the template hierarchy decide which file renders a single blog post? Listen for the order: a specific template like single-{post_type}.php, then single.php, then archive.php or index.php as the fallback.
  3. How would you add a script or stylesheet to a theme the right way? The correct pattern is wp_enqueue_script() / wp_enqueue_style() hooked to wp_enqueue_scripts, with dependencies and a version number, not a hardcoded <script> tag in the header.
  4. What is a child theme, and why would you use one instead of editing a theme directly? A strong answer covers inheriting the parent theme's functionality and styles while keeping customizations safe from being overwritten on a theme update.
  5. How would you create a custom admin menu page or settings page for a plugin? Look for add_menu_page() or add_options_page(), plus the Settings API for safely saving and sanitizing option values.

Red flag: someone who edits a parent theme's files directly, or hardcodes markup into header.php instead of using hooks, will leave a client's site broken on the next update.

What questions test theme and plugin development?

Plugin and theme questions are where a candidate's real build experience shows. Ask for specifics, not definitions.

  1. How would you build a simple plugin that adds a custom field to a post? A strong answer covers the plugin header comment, a hook to add the field (meta box or block attribute), and sanitize_text_field() or similar before saving.
  2. How do you register a custom taxonomy, and when would you use one instead of standard categories and tags? Listen for register_taxonomy() and a real example, such as a "brand" taxonomy on a product post type.
  3. What is a custom walker class used for in WordPress menus? A strong candidate explains that a custom Walker_Nav_Menu subclass changes how a menu's HTML is generated, useful for matching a specific design system.
  4. How would you make a theme option translation-ready? Look for __() and _e() wrapping every user-facing string, plus a text domain that matches the theme or plugin slug.
  5. What is the difference between a shortcode and a Gutenberg block, and which would you recommend for a new feature in 2026? A strong answer recommends a block for anything editor-facing today, since shortcodes are older and give editors less visual feedback.

Red flag: a candidate who cannot describe their own plugin or theme project in specific technical terms, only "I used WordPress for a client site," likely did not write the code themselves.

What questions test WordPress security?

Security questions matter on every WordPress build, since the platform's popularity makes it a constant target. OWASP's Top 10 web application risks cover the same injection, access control and misconfiguration risks that show up in WordPress sites every year.

  1. What is a WordPress nonce, and what does it protect against? A strong answer: a nonce is a one-time token that confirms a request came from the expected form or link, protecting against cross-site request forgery (CSRF).
  2. How would you sanitize and validate data submitted through a custom form on the front end? Listen for the right function for the data type: sanitize_text_field(), sanitize_email(), absint() for numbers, plus validation before saving, not just sanitizing on output.
  3. Why would you disable XML-RPC on a WordPress site, and what is the tradeoff? A strong candidate explains that XML-RPC is a common brute-force and DDoS target, and that disabling it can break the Jetpack plugin or the mobile app if those are in use.
  4. What would you check first if a client told you their WordPress site had been hacked? Look for a structured answer: check for unknown admin users, unfamiliar files or plugins, outdated plugins and themes, and file integrity against a clean backup.
  5. How do capabilities and roles control what a logged-in user can do in WordPress? A strong answer covers the built-in roles (administrator, editor, author, contributor, subscriber) and using current_user_can() to gate a custom feature rather than checking the role name directly.

Red flag: a candidate who outputs form input directly into HTML without escaping it (esc_html(), esc_attr(), esc_url()) is leaving the door open to cross-site scripting.

What questions test performance and optimization?

A WordPress site that is slow under real traffic usually has a developer who never learned to look past "it works on my machine." PHP remains one of the most widely used server-side languages, according to the Stack Overflow Developer Survey, so a candidate's general PHP performance habits transfer directly to WordPress work.

  1. What is a transient in WordPress, and when would you use one? A strong answer: a transient stores a value with an expiration time, useful for caching the result of an expensive API call or database query.
  2. How would you find out what is actually slowing down a WordPress page? Listen for a real process: a profiling tool or plugin, checking slow database queries, and ruling out third-party plugin and script bloat before guessing.
  3. What is the WordPress object cache, and how does it differ from a page caching plugin? A strong candidate explains that the object cache stores the results of expensive PHP operations in memory (with Redis or Memcached in production), while page caching stores entire rendered HTML pages.
  4. How would you reduce the number and size of images loaded on a WordPress page without hurting quality? Look for responsive images (srcset), modern formats, lazy loading, and a CDN, not just "compress the images once."

Red flag: someone who recommends installing five more plugins to fix a performance problem, instead of diagnosing the actual bottleneck first, will make slow sites slower.

What questions test Gutenberg and the REST API?

Agencies are building more custom blocks and headless front ends every year, so these skills separate up-to-date candidates from those stuck on page builders. The MDN Web Docs guide to the Fetch API covers the same request pattern a block or headless front end uses to talk to the WordPress REST API.

  1. How would you build a custom Gutenberg block that pulls in dynamic content, such as a list of recent posts? A strong answer covers a dynamic block with server-side rendering (a render_callback), not a purely static block that only saves HTML.
  2. What is InspectorControls used for in block development? Listen for: it renders the settings panel in the block editor's sidebar, where an editor adjusts a block's attributes.
  3. How would you register a custom REST API endpoint, and why might you need one? A strong candidate explains register_rest_route() and gives a real reason, such as a custom search endpoint or a headless front end that needs data WordPress does not expose by default.
  4. What is the difference between the classic editor's shortcode approach and a block's attributes for storing data? Look for an understanding that block attributes are structured and validated against a schema, while shortcode parameters are just a string the developer has to parse manually.

Red flag: a candidate who has never built a dynamic block or touched the REST API may be fine for simple sites, but will struggle on any modern, editor-heavy or headless build.

What questions test debugging and real-world troubleshooting?

Scenario questions like these show how a candidate thinks under pressure, which matters more than textbook knowledge once they are on your team.

  1. A client says their site shows a white screen with no error message. How do you start debugging it? A strong answer: enable WP_DEBUG and check the debug log first, rather than guessing or disabling plugins at random.
  2. Two plugins conflict and break the checkout page on a client's store. How would you find out which one, and what would you do next? Listen for a methodical approach: deactivate plugins one at a time on a staging copy, confirm the conflict, then look for a compatible alternative or a targeted code fix instead of leaving the plugin off permanently.

How do you score WordPress developer interview questions?

Score each skill area on a simple 1 to 5 scale, then weight security and performance highest for any client-facing, e-commerce, or high-traffic build.

How to run a WordPress developer interview, from screening to decision

Skill area

1 (weak)

3 (solid)

5 (strong)

PHP & fundamentals

Cannot explain the request lifecycle

Explains the template hierarchy correctly

Reasons clearly about WordPress as a PHP application

Hooks & architecture

Confuses actions and filters

Uses hooks correctly with examples

Chooses the right hook and explains tradeoffs

Themes & plugins

Only describes using existing plugins

Has built a basic plugin or custom post type

Describes a real, specific build in technical detail

Security

Cannot explain nonces or sanitization

Knows the main sanitization functions

Thinks like an attacker, flags risks unprompted

Performance

Suggests plugins without diagnosing first

Names caching options correctly

Has a real diagnostic process and fixed a slow site before

Gutenberg & REST API

Never built a custom block

Built a simple static block

Built a dynamic block or a custom REST endpoint

Key takeaway: A candidate does not need a 5 in every row. A developer focused on front-end theme work can be weaker on the REST API; a plugin specialist can be weaker on Gutenberg block design. Decide which rows matter most for your actual project before the interview, not after.

Ready to hire your next WordPress developer?

A structured interview catches most red flags, but a hands-on skills test catches the rest before you make an offer. Testlify's WordPress developer test and WordPress security test let candidates show their work on real WordPress problems, not just describe it. Start a 7-day free trial, no credit card required, and see how a scored assessment compares to interview answers alone. For the full hiring process, see our guide on how to hire a WordPress developer.

Frequently asked questions

Reuben
Reuben

Content Writer

Reuben John is a B2B content writer focused on HR and recruitment. His work explores hiring trends, skills-based recruitment, talent assessment, and the technologies shaping how companies find and hire talent.

LinkedIn

Get started.

Hire on proof, not resumes.

Run your first skills-based assessment free — no credit card required.

We use cookies to enhance your browsing experience, serve personalised ads or content, and analyse our traffic. By clicking "Accept All", you consent to our use of cookies.