Skip to content

Instantly share code, notes, and snippets.

@WpComet
Created July 29, 2024 05:27
Show Gist options
  • Save WpComet/6f3de5031169483963d1714a3cf6af48 to your computer and use it in GitHub Desktop.
Save WpComet/6f3de5031169483963d1714a3cf6af48 to your computer and use it in GitHub Desktop.
WP_REST_Request empty $params via Postman
You should be able to access them via
$params = $request->get_params();
normally, if you cant, try these:
$request->get_body_params(),$request->get_url_params())
$request->get_body();
Also make sure you are using "application/x-www-form-urlencoded" and NOT "form-data"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment