Uses the GET HTTP method.
Used for sending data that is expected to be in the body.
$urlstringrequired
$argsstring|arrayoptional
Default:array()
'headers', 'body', 'response', 'cookies', 'filename'.public function get( $url, $args = array() ) {
$defaults = array( 'method' => 'GET' );
$parsed_args = wp_parse_args( $args, $defaults );
return $this->request( $url, $parsed_args );
}
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_http/get