Training mode
Time remaining:
0 / 17 answered
Choose the safest general rule.
Public and protected routes both need an explicit permission decision.
The action may support both authenticated and unauthenticated visitors.
The unauthenticated variant has an extra suffix.
The hook is dedicated to REST route registration.
Separate input shape from authorization.
WordPress provides paired success and error helpers.
It is a manifest for a block.
Consider a latest-posts style block.
It is the response object for the REST server.
It concerns frontend behavior in blocks.
Routes are public identifiers.
The REST server maps error data to the response.
It extends the API representation.
The server knows the correct URL and current nonce.
They connect editor state with saved or rendered output.
Existing posts may contain old markup.
Consider editor responsiveness.
wp.apiFetch middleware can supply it.