← 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?
- In a site functionality plugin
- In the replacement theme stylesheet
- In an uploaded media attachment
- 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?
- Move the echo to a later priority
- Flush rewrite rules inside the callback
- Call the callback only during activation
- 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?
- Flush before registering the type and never register it again
- Disable pretty permalinks globally
- Flush rules on every init
- 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