Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_remote_post [ WordPress Function ]

wp_remote_post ( $url, $args = array() )
Parameters:
  • (string) $url Site URL to retrieve.
  • (array) $args Optional. Override the defaults.
See:
Returns:
  • (WP_Error|array) The response or WP_Error on failure.
Defined at:



Retrieve the raw response from the HTTP request using the POST method.

Source


<?php
function wp_remote_post($url$args = array()) {
    
$objFetchSite _wp_http_get_object();
    return 
$objFetchSite->post($url$args);
}
?>

Examples [ wp-snippets.com ]

Top Google Search Results

More ...

0 User Note(s)

None yet. Be the first!

Add New ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics