public function InstapageCmsPluginWPConnector::remotePost in Instapage plugin 7.3
Same name and namespace in other branches
- 8.3 core/connectors/InstapageCmsPluginWPConnector.php \InstapageCmsPluginWPConnector::remotePost()
Performs remote POST request.
@uses InstapageCmsPluginWPConnector::remoteRequest().
Parameters
string $url URL for the request.:
array $data Data that will be passed in the request.:
array $headers Headers for the request.:
Return value
array Request result in a form of associative array.
File
- core/
connectors/ InstapageCmsPluginWPConnector.php, line 265
Class
- InstapageCmsPluginWPConnector
- Class that utilizes native WordPress functions to perform actions like remote requests and DB operations.
Code
public function remotePost($url, $data, $headers = array()) {
return $this
->remoteRequest($url, $data, $headers, 'POST');
}