wpdatatables_curlopt_ssl_verifypeer

Contents

Description

This filter is applied to the curl_setopt function when activating your wpDataTables license.
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, …) is a cURL option that tells cURL whether or not it should verify the SSL certificate of the remote server and it defaults to true.

Usage

add_filter( 'wpdatatables_curlopt_ssl_verifypeer', 'before_preview_file_table' );

Examples

// Callback function for the wpdatatables_curlopt_ssl_verifypeer filter hook
function disable_ssl_verification_for_wpdatatables($verifyPeer) {
    return 0; // Disable SSL verification
}

add_filter('wpdatatables_curlopt_ssl_verifypeer', 'disable_ssl_verification_for_wpdatatables');