WordPress

← All exam tracks

Plugins · Themes · WordPress APIs

WordPress

Practice original scenario-based WordPress questions. Take a timed mock, focus on a topic, and learn from detailed explanations. These are independent practice materials, not official exam questions or a guarantee of certification readiness.

16 questions · 24 minutes · 70% practice target

Create an account to practice Already a member? Sign in

Topics you will practice

  • Architecture & Hooks
  • Themes & APIs
  • Security & Data
  • Performance & Operations

Try a sample

Think through each question, then reveal the explanation. Full attempts save your answers and scores to your account.

A site registers a Book post type inside its theme. After changing themes, editors lose the Book administration screen. Where should this registration live?

  1. In a site functionality plugin
  2. In the replacement theme stylesheet
  3. In an uploaded media attachment
  4. In a cached page fragment
Show answer and explanation

Correct answer: In a site functionality plugin

Content functionality should survive theme changes, so register the post type in a plugin. Theme styles, media, and cached HTML do not register persistent application behavior.

A plugin must modify the value passed through a WordPress filter. Its callback echoes the new value but callers still receive the original. What is required?

  1. Move the echo to a later priority
  2. Flush rewrite rules inside the callback
  3. Call the callback only during activation
  4. Return the modified value from the filter callback
Show answer and explanation

Correct answer: Return the modified value from the filter callback

Filters pass returned values through a pipeline. Echo writes output rather than replacing the filtered value; priority cannot correct a missing return. Activation and rewrite rules are unrelated.

A plugin adds a custom post type and rewrite rules. Permalinks should work after activation without an expensive flush on each request. Which sequence fits?

  1. Flush before registering the type and never register it again
  2. Disable pretty permalinks globally
  3. Flush rules on every init
  4. Register the type, then flush rules during activation
Show answer and explanation

Correct answer: Register the type, then flush rules during activation

Register the type on normal initialization and ensure it is registered before the activation-time flush. Flushing every request is costly; flushing before registration omits the new rules.

Study references