Description
Filters the options used for cURL.
Changelog
Introduced in versionĀ 0.9.2
Source
wpmem_exp_curl_options is located in /includes/class-wp-members-ipn-listener.php
Usage
add_filter( 'wpmem_exp_curl_options', 'my_curl_options' ); function my_curl_options() { /* * This filter is used to override the cURL default * options that are used in the extension. No values * are passed to the filter. You only need to return * any values that are being changed. */ $options[ = array( $options['CURLOPT_HTTP_VERSION'] = 'CURL_HTTP_VERSION_1_1'; $options['CURLOPT_POST' ] = '1'; $options['CURLOPT_RETURNTRANSFER'] = '1'; $options['CURLOPT_POSTFIELDS'] = $encoded_data; $options['CURLOPT_SSL_VERIFYPEER'] = '1'; $options['CURLOPT_SSL_VERIFYHOST'] = '2'; $options['CURLOPT_FORBID_REUSE'] = '1'; $options['CURLOPT_HTTPHEADER'] = array( 'Connection: Close' ); return $options; }
See a list of all filter and action hooks