What is the WordPress REST API `rest_pre_serve_request` action and how does it enable custom response handling?

WordPress Hard
Select the correct answer: Single Choice

Key points

  • `rest_pre_serve_request` fires after response preparation
  • Returning true indicates manual response serving
  • Enables custom serialization formats and headers
  • Prevents WordPress from sending its own response

Ready to go further?