wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_remote_post › WordPress Function

Depuis2.7.0
Dépréciéen/a
wp_remote_post ( $url, $args = array() )
Paramètres: (2)
  • (string) $url URL to retrieve.
    Requis: Oui
  • (array) $args Optional. Request arguments. Default empty array. See WP_Http::request() for information on accepted arguments.
    Requis: Non
    Défaut: array()
Voir:
Retourne:
  • (array|WP_Error) The response or WP_Error on failure.
Défini(e) dans:
Codex:

Performs an HTTP request using the POST method and returns its response.



Source

function wp_remote_post( $url, $args = array() ) {
	$http = _wp_http_get_object();
	return $http->post( $url, $args );
}