Created
July 29, 2024 05:27
-
-
Save WpComet/6f3de5031169483963d1714a3cf6af48 to your computer and use it in GitHub Desktop.
WP_REST_Request empty $params via Postman
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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