wp_remote_post() – Performs an HTTP request using the POST method and returns its response.
Description
Performs an HTTP request using the POST method and returns its response.
Usage
$array|WP_Error = wp_remote_post( $url, $args );
Parameters
- $url
- ( string ) required – URL to retrieve.
- $args
- ( array ) optional – Optional. Request arguments. Default empty array.
Returns
array|WP_Error The response or WP_Error on failure.
Source
File name: wordpress/wp-includes/http.php
Lines:
1 to 4 of 4
function wp_remote_post( $url, $args = array() ) { $http = _wp_http_get_object(); return $http->post( $url, $args ); }