We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b815cf commit 489dcd0Copy full SHA for 489dcd0
1 file changed
frequently-asked-questions.md
@@ -68,7 +68,7 @@ Instead, manually call the [`WP_REST_Server::response_to_data`](https://develope
68
69
```php
70
$request = new WP_REST_Request( 'GET', '/wp/v2/posts' );
71
-$response = rest_do_request( $req );
+$response = rest_do_request( $request );
72
$data = rest_get_server()->response_to_data( $response, true );
73
var_dump( $data['_embedded'] );
74
```
0 commit comments