• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Plugins » WP-Members » Documentation » Filter Hooks » wpmem_exp_curl_options

wpmem_exp_curl_options

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

Ready to get started?

Join Today!

© 2025 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Privacy Policy
  • Refund Policy