Interview prep · written by the FindAJobAI team

WordPress Developer Interview Questions (2026) and How to Answer

By FindAJobAI Team Updated How we wrote this page

WordPress developer interviews usually mix questions on PHP and the WordPress core APIs (hooks, the loop, custom post types, the REST API) with block editor work, WooCommerce, security and performance. Many teams add a code review of a short plugin or a small take-home theme task.

Interviewers want to see that you write code rather than stack plugins, that you know how to keep a site secure and updatable, and that you think about the editors who will use the admin area every day.

Below: 30 questions with what each one really asks and an answer outline, full sample answers to the 10 most asked, red flags to avoid and a 7-day plan.

Answering with STAR

Tell each story in four steps: the situation in a sentence, your task, the actions you took (most of the answer) and the result, with a number if you have one. Aim for about two minutes; the outlines show what to include, the details must be yours.

Behavioural questions (1–10)

How you've handled real situations. Answer each with one true story, in STAR order.

  1. 1.Tell me about a WordPress site you made noticeably faster.

    What they're really asking: Do you find real performance causes with data instead of adding another caching plugin?

    Answer outline (STAR)

    • SituationA client site with slow product pages and failing Core Web Vitals on mobile.
    • TaskBring load time down without breaking the editor experience.
    • ActionProfiled with Query Monitor and browser tools, found repeated meta queries and a page builder loading scripts everywhere, then replaced the layouts with custom blocks and cached the heavy query.
    • ResultPages loaded in well under half the time, mobile vitals passed, and editors found the new blocks simpler.

    Full sample answer (fictional example)

    A retail client's product pages were slow on phones and failing Core Web Vitals. I started with Query Monitor and browser tools rather than adding another plugin. The theme ran the same related-products query several times per page, and a page builder loaded its scripts on every URL. I replaced the builder layouts with four custom blocks, cached the related-products query in a transient, and switched images to responsive sizes. Load time dropped to well under half, mobile vitals passed, and the marketing team said the new blocks were easier to use than the builder had been.

  2. 2.Describe a time a plugin update broke a live site.

    What they're really asking: Can you handle an outage calmly and stop it happening again?

    Answer outline (STAR)

    • SituationA form plugin update that broke checkout on a busy store during a weekday morning.
    • TaskRestore checkout quickly and find out why the update reached production untested.
    • ActionRolled back the plugin from the last backup, confirmed orders were flowing, then reproduced the conflict on staging and found a removed filter the theme relied on.
    • ResultCheckout was back within minutes, the theme was fixed, and all updates now go through staging first.

    Full sample answer (fictional example)

    A form plugin update broke checkout on a client store one weekday morning. My first step was restoring that plugin from the previous night's backup, which brought checkout back within minutes. Then I copied the site to staging and repeated the update. The new version had removed a filter our theme used to add a delivery note field. I rewrote that part of the theme to use a supported hook and added a short checklist so every update now goes to staging first. Since then we have had no update-related outages on that store.

  3. 3.Tell me about a time you replaced plugins with your own code.

    What they're really asking: Do you know when custom code is the better choice, and when it is not?

    Answer outline (STAR)

    • SituationA site running five plugins that overlapped and conflicted after updates.
    • TaskReduce risk and page weight without losing features the marketing team used.
    • ActionListed which features were actually used, wrote one small plugin covering them with a custom block and settings page, and kept two well-maintained plugins for the rest.
    • ResultPage weight dropped, update conflicts stopped, and the team had one plugin to maintain instead of five.

    Full sample answer (fictional example)

    One site I inherited ran five plugins for forms, popups and custom fields, and they conflicted after almost every update. I listed which features the marketing team actually used and found it was only a handful. I wrote one small plugin with a custom block and a settings page that covered those, and kept two solid, well-maintained plugins for everything else. Page weight dropped, updates stopped breaking pages, and the team now has one plugin to understand instead of five. I also wrote a short readme so the next developer could pick it up.

  4. 4.Tell me about a time you had to explain a technical trade-off to a non-technical client.

    What they're really asking: Can you help a client decide without hiding behind jargon?

    Answer outline (STAR)

    • SituationA client wanted a page builder for full design freedom on a site that already had speed problems.
    • TaskAgree an approach that met their goals without slowing the site further.
    • ActionShowed two example pages side by side with load times, explained what editors could and could not change in each, and offered a set of flexible block patterns.
    • ResultThe client chose the patterns, and their team still builds new landing pages without asking for help.

    Full sample answer (fictional example)

    A client asked for a page builder because they wanted design freedom, but their site was already slow. I built two example pages, one with the builder and one with flexible block patterns, and showed them side by side with load times on a phone. I explained what editors could change in each version in plain words. They saw that the patterns gave them most of the freedom they wanted without the delay. They chose the patterns, and their team still builds new landing pages without asking me for help.

  5. 5.Describe a time you worked with a designer to turn a complex layout into a theme.

    What they're really asking: Can you collaborate on design details while keeping the site editable?

    Answer outline (STAR)

    • SituationA Figma design with many one-off sections that would be hard for editors to reuse.
    • TaskBuild the design faithfully while keeping the number of blocks manageable.
    • ActionGrouped the sections into a small set of reusable blocks with options, agreed the spacing and colour tokens in theme.json, and reviewed edge cases with the designer.
    • ResultThe site matched the design closely, and editors used a dozen blocks instead of forty one-off templates.
  6. 6.Tell me about a site migration you led.

    What they're really asking: Can you plan a risky move without losing content or search traffic?

    Answer outline (STAR)

    • SituationMoving a busy publisher from one host to another with thousands of posts and media files.
    • TaskMove the site with minimal downtime and no broken links.
    • ActionRan a test migration first, used WP-CLI for the database search-replace, lowered DNS time-to-live in advance and froze publishing for one hour.
    • ResultThe move finished in the planned window, and search traffic stayed steady in the following weeks.

    Full sample answer (fictional example)

    I moved a news publisher with around twenty thousand posts to a new host. I ran a full test migration a week earlier to time each step and catch problems, such as a few plugins that wrote absolute paths into the database. On the night, we froze publishing for an hour, I exported the database, used WP-CLI for the search-replace, synced media and switched DNS, which I had set to a short time-to-live in advance. The site was back within the planned window, and search traffic stayed steady over the following weeks.

  7. 7.Describe a time you trained editors to use a new site.

    What they're really asking: Do you care about the people who use the admin area?

    Answer outline (STAR)

    • SituationA nonprofit team moving from a page builder to native blocks.
    • TaskGet editors confident without constant support requests.
    • ActionWrote a short guide with screenshots, ran two hands-on sessions and locked a few blocks so layouts could not break.
    • ResultSupport requests dropped after the first month, and editors began building pages on their own.
  8. 8.Tell me about a time you pushed back on a feature request.

    What they're really asking: Can you say no constructively with a better option?

    Answer outline (STAR)

    • SituationA request to add a custom field to every block, which would have made editing confusing.
    • TaskMeet the real need without harming the editor experience.
    • ActionAsked what problem the field solved, found it was about tracking campaigns, and proposed one settings panel per page instead.
    • ResultThe team got their tracking, and the editor stayed simple.
  9. 9.Tell me about a time you reviewed someone else's WordPress code.

    What they're really asking: Can you give useful review feedback on security and structure?

    Answer outline (STAR)

    • SituationA pull request adding a form handler without nonce or capability checks.
    • TaskGet it fixed without discouraging a newer developer.
    • ActionExplained the risk in plain terms, linked the relevant handbook section and suggested a small helper the team could reuse.
    • ResultThe code was fixed that day, and the helper became part of the team's starter plugin.
  10. 10.Describe a WooCommerce feature you built that the business relied on.

    What they're really asking: Can you build e-commerce features that hold up with real orders?

    Answer outline (STAR)

    • SituationA store needing product bundles that standard plugins handled poorly.
    • TaskAdd bundles without breaking stock, tax or reporting.
    • ActionBuilt bundles as a custom product type, hooked into stock reduction and tested refunds and coupons on staging with real order data.
    • ResultBundles launched before a sale and became a regular part of the catalogue.

Technical and role-skill questions (11–22)

Can you do the work itself? Think out loud and name the trade-offs.

  1. 11.What is the difference between actions and filters in WordPress?

    What they're really asking: A core concept that shows whether you understand how WordPress is extended.

    Answer outline

    • Actions run code at a point in execution, such as `init` or `save_post`, and return nothing.
    • Filters receive a value, change it and must return it, such as `the_content`.
    • Both are registered with a priority and argument count, and can be removed by other code.

    Full sample answer (fictional example)

    Both are hooks, but they do different jobs. An action lets me run code at a certain moment, such as registering post types on `init` or sending a notification on `save_post`, and it does not return anything. A filter passes me a value, such as the post content or a query argument, and I must return it, changed or not. Both take a priority and an argument count, which matters when several plugins hook into the same place. I also make sure to name my callbacks clearly so other developers can remove or adjust them.

  2. 12.How would you register a custom post type and taxonomy, and where should that code live?

    What they're really asking: Do you know where data structures belong in a project?

    Answer outline

    • Use `register_post_type` and `register_taxonomy` on the `init` hook with labels, supports and REST settings.
    • Put them in a plugin, not the theme, so the content survives a theme change.
  3. 13.How do you build a custom Gutenberg block?

    What they're really asking: Block development is now central to most WordPress work.

    Answer outline

    • Define the block in `block.json` with attributes, scripts and styles, and register it in PHP.
    • Write the editor UI in React using the block editor packages, and choose static save output or a dynamic PHP render callback.

    Full sample answer (fictional example)

    I start with `block.json`, which defines the block's name, attributes, supports and asset files, and I register it in PHP with `register_block_type`. The editor side is React using the block editor packages, with controls in the sidebar for options like colour or layout. For content that changes, such as a list of latest events, I use a dynamic block with a PHP render callback so the front end is always current. I keep options limited so editors cannot break the design, and I add the block to patterns so it is easy to use.

  4. 14.How do you secure a form that saves data in WordPress?

    What they're really asking: Security basics every WordPress developer must know.

    Answer outline

    • Check a nonce and the user's capability before doing anything.
    • Sanitise input on the way in, such as `sanitize_text_field`, and escape output on the way out, such as `esc_html`.
    • Use `$wpdb->prepare` for any custom SQL.

    Full sample answer (fictional example)

    I treat every request as untrusted. First I check a nonce to confirm the request came from my form, and then I check the user's capability with `current_user_can`, because a nonce alone does not prove permission. I sanitise each field on the way in with the right function, such as `sanitize_email` or `absint`, and I escape everything on output with `esc_html` or `esc_attr`. If I write custom SQL, I always use `$wpdb->prepare`. Finally, I return clear errors so legitimate users know what went wrong without exposing internal details.

  5. 15.What is the WordPress template hierarchy, and how does it work with block themes?

    What they're really asking: Do you understand how WordPress picks which template to render?

    Answer outline

    • WordPress picks the most specific template file for a request, falling back towards `index`, such as `single-product`, then `single`, then `index`.
    • Block themes use HTML templates and template parts edited in the Site Editor, with the same hierarchy.
  6. 16.How would you improve the performance of a slow WordPress site?

    What they're really asking: Can you reason about performance instead of listing plugins?

    Answer outline

    • Measure first with Query Monitor and browser tools to find slow queries, heavy scripts and large images.
    • Add object and page caching, load scripts only where needed, and serve responsive, compressed images.
  7. 17.How do you use the WordPress REST API in a project?

    What they're really asking: Shows whether you can connect WordPress to apps and other systems.

    Answer outline

    • Use built-in endpoints for posts and users, and `register_rest_route` for custom endpoints.
    • Always set a `permission_callback` and validate arguments in the route definition.
  8. 18.What is `WP_Query`, and when would you use `pre_get_posts` instead?

    What they're really asking: Query knowledge separates theme builders from WordPress developers.

    Answer outline

    • `WP_Query` runs a custom query for extra lists of posts on a page.
    • `pre_get_posts` changes the main query before it runs, which is better than running a second query.
  9. 19.How do transients and object caching work in WordPress?

    What they're really asking: Caching knowledge matters for any busy site.

    Answer outline

    • Transients store data with an expiry, in the options table or a persistent object cache if one exists.
    • A persistent object cache such as Redis keeps query results in memory between requests.
  10. 20.What is the difference between a parent theme, a child theme and a block theme?

    What they're really asking: Shows your grasp of theme structure and when to use each.

    Answer outline

    • A child theme overrides templates and styles of a parent theme without editing it, so updates stay safe.
    • A block theme uses HTML templates and theme.json and can be edited in the Site Editor.
  11. 21.How do you manage WordPress projects with Git and Composer?

    What they're really asking: Tests whether you work in a modern, repeatable way.

    Answer outline

    • Track the theme and custom plugins in Git and leave uploads and core out of the repository.
    • Use Composer to pin plugin versions so every environment matches.
  12. 22.How do you make a WordPress theme accessible?

    What they're really asking: Accessibility is often a legal and client requirement.

    Answer outline

    • Use semantic HTML, proper heading order, labelled forms and visible focus styles.
    • Test with a keyboard and a screen reader, and check colour contrast for theme colours.

Take-home or live exercise: tips

WordPress developer interviews often include reviewing a short plugin for bugs and security issues, building a small custom block or theme template as a take-home, or pairing on a slow query in an existing site.

  • Look for missing nonces, capability checks, sanitising and escaping first when reviewing plugin code.
  • Use block.json and the official scaffolding tools in a block task rather than copying an old tutorial.
  • Include a short readme with setup steps, decisions and what you would improve with more time.
  • Talk through how editors will use what you built, not only how it works in code.

Situational questions (23–30)

Scenarios that test judgement: say what you'd do first, and why.

  1. 23.A client's site has been hacked and shows spam links. What do you do?

    What they're really asking: Can you respond to a security incident in a sensible order?

    Answer outline

    • Take a backup for evidence, put the site into maintenance mode and reset all passwords and keys.
    • Replace core, themes and plugins with clean copies, check the database and uploads for injected code, then find how the attacker got in.

    Full sample answer (fictional example)

    First I take a full backup of the current state for evidence, then put the site in maintenance mode so visitors are not exposed. I reset all admin passwords, database credentials and the security keys in the config file. Next I replace core, themes and plugins with clean copies, scan the uploads folder for PHP files that should not be there, and search the database for injected scripts. Once the site is clean, I look for the entry point, often an outdated plugin, fix it, and set up monitoring and regular updates so it does not happen again.

  2. 24.Marketing wants to install a new plugin on the live site today. How do you respond?

    What they're really asking: Will you protect the site without blocking the business?

    Answer outline

    • Ask what problem it solves and check its update history, reviews and code quality.
    • Test it on staging first and agree a quick timeline so marketing is not left waiting.

    Full sample answer (fictional example)

    I would not say no straight away, because they usually have a real deadline. I would ask what they need it to do and check the plugin's update history, active installs, support replies and a quick look at its code. If it looks healthy, I would install it on staging, test the key pages and checkout, and push it live the same day if nothing breaks. If it looks risky, I would suggest a safer plugin or a small custom feature, and give them a clear time estimate so they can plan.

  3. 25.You inherit a site with all custom code in the theme's functions file. What do you do?

    What they're really asking: Can you improve a messy codebase safely?

    Answer outline

    • Map what the code does and move content logic, such as post types, into a plugin step by step.
    • Put the site under Git first, and test each move on staging before deploying.
  4. 26.A WooCommerce store's checkout is slow during a sale. How do you investigate?

    What they're really asking: Can you handle performance under real business pressure?

    Answer outline

    • Check server load, slow queries and any external calls made during checkout, such as shipping or tax APIs.
    • Make sure cart and checkout pages are excluded from page caching while the rest of the site stays cached.
  5. 27.A client wants a headless WordPress site with a JavaScript front end. What do you ask first?

    What they're really asking: Can you judge whether a new architecture is worth it?

    Answer outline

    • Ask what problem headless solves for them and who will maintain two codebases.
    • Check how previews, forms and plugins will work without the theme layer.
  6. 28.The admin area is very slow for editors but the front end is fast. What do you check?

    What they're really asking: Can you debug the part of WordPress visitors never see?

    Answer outline

    • Look for plugins running heavy queries or external calls on admin pages, and check `admin-ajax` and Heartbeat traffic.
    • Check for large options autoloaded on every request.
  7. 29.You find a security flaw in a popular plugin a client uses. What do you do?

    What they're really asking: Can you act responsibly beyond your own codebase?

    Answer outline

    • Reduce the risk for the client right away, for example by disabling the affected feature.
    • Report the flaw privately to the plugin author or through a responsible disclosure channel.
  8. 30.A designer asks for a layout that the block editor cannot easily support. How do you handle it?

    What they're really asking: Can you balance design and maintainability?

    Answer outline

    • Suggest a close alternative using existing blocks or a custom block with limited options.
    • Show the editing cost of a one-off template so the designer can decide with you.

Red flags to avoid in your answers

Each one is quick to fix before the day.

  1. Solving every problem by installing another plugin.

    Explain when you would write custom code and how you judge a plugin's quality before using it.

  2. Skipping nonces, capability checks or escaping in code samples.

    Show security habits in every example, even small ones, and mention them out loud.

  3. Editing core or a parent theme directly.

    Describe how hooks, child themes and plugins keep changes safe across updates.

  4. Having no workflow for testing updates before production.

    Talk about staging, backups and version control as a normal part of your process.

How to prepare for a WordPress developer interview in 7 days

An hour or two a day is enough; the order matters more than the length.

  1. Day 1: Hooks and core APIs

    Review actions, filters, priorities, custom post types and the template hierarchy with short written examples you can explain aloud.

  2. Day 2: Block development

    Build one small dynamic block with block.json, a sidebar control and a PHP render callback from scratch.

  3. Day 3: Security drill

    Take an old plugin of yours and add missing nonces, capability checks, sanitising and escaping, noting each fix.

  4. Day 4: Speed audit

    Run Query Monitor and browser tools on a test site, find two slow points and write how you would fix each one.

  5. Day 5: WooCommerce refresher

    Read through WooCommerce hooks for cart, checkout and orders, and list the ones you have used in real work.

  6. Day 6: Portfolio story prep

    Prepare short stories about a faster site, a broken update and a plugin you replaced with your own code.

  7. Day 7: Mock code review

    Ask a friend to give you a short plugin to review aloud in thirty minutes, then rest before the interview.

Questions to ask the interviewer

Pick two or three; the answers tell you whether you want the job.

  1. How many sites does the team look after, and how are they hosted and deployed?
  2. Do you build mainly block themes, classic themes or headless front ends?
  3. How are plugin updates tested before they reach production?
  4. Who edits content day to day, and what do they find hardest in the admin area?
  5. How is code reviewed, and what coding standards does the team follow?

Preparation tips

  • Bring a plugin or theme you wrote and be ready to walk through its hooks, security checks and structure.
  • Revise the block editor basics: block.json, attributes, dynamic blocks and theme.json.
  • Prepare one story about a site you made faster and one about an update or security problem you handled.

Prepare the general questions too: tell me about yourself, why do you want to work here? and why are you leaving? Afterwards, send a thank-you email; when the offer comes, negotiate the salary.

How we wrote this page

The FindAJobAI team wrote the questions, outlines and sample answers for WordPress developer interviews. The people, employers and numbers in the samples are invented: copy the structure, and use details from your own work.

Once we track enough live WordPress developer job ads, this page also shows the skills they ask for most, counted the same way as our in-demand skills report.

Last reviewed on November 1, 2026.