Training mode
Time remaining:
0 / 60 answered
Identify the WordPress API responsibility before considering implementation details.
It is a manifest for a block.
Choose the solution with the clearest boundary and safest lifecycle behavior.
Choose the answer that reflects current WordPress engineering practice.
Useful when one callback handles several hooks.
Combine internationalization with context-appropriate output escaping.
Consider lifecycle, authorization, failure and long-term maintenance.
The default object cache is request-scoped.
It is part of internationalization calls.
Identify the data-model or security responsibility before choosing the API.
Consider external object caches as well as the database implementation.
An expiration is a maximum lifetime, not a minimum lifetime.
The query contains values supplied at runtime.
Do not concatenate untrusted values into the SQL string.
Frontend code cannot keep a secret.
Avoid changing admin and secondary queries.
Choose the function intended for capability checks.
Roles group capabilities, but code should generally check the required capability.
Several plugins share the same runtime.
Consider editor responsiveness.
wp.apiFetch middleware can supply it.
LIKE escaping and SQL placeholders solve different problems.
Select all correct answers.
Dependencies and versioning are part of the registration contract.
Choose the most accurate statement for WordPress development.
Think about when data enters the system and when it leaves for the browser.
It resolves a physical template file.
The hook is dedicated to REST route registration.
Compare it with call_user_func_array().
Choose the approach that avoids unnecessary work on normal requests.
Flushing is expensive and registration must happen first.
Declare support during theme setup.
It is the non-AJAX administrative form endpoint.
Administrators need a recoverable state.
WordPress provides paired success and error helpers.