gform_emma_verifypeer

Description

Allows peer verification to be bypassed.

Usage

add_filter( 'gform_emma_verifypeer', 'your_function_name' );

Parameters

  • $is_enabled bool
    Indicates if the CURLOPT_SSL_VERIFYPEER option is enabled, which allows peer verification to be bypassed. True enables peer verification, false bypasses peer verification.

Examples

add_filter( 'gform_emma_verifypeer', '__return_false' );

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?

Since

This filter was added in Emma Add-On 1.2.

Source Code

This filter is located in Emma::_verify_peer() in includes/api/Emma.php.