HTTP/2 200
server: nginx
date: Sun, 20 Jul 2025 08:45:12 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 2
WP_REST_Request::set_method() – Method | Developer.WordPress.org
WordPress Developer Resources
WP_REST_Request::set_method()
WP_REST_Request::set_method( string $method )
Sets HTTP method for the request.
$method
stringrequiredHTTP method.
Version | Description |
---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.