Skip to content
Docs
Get RestroPress

Filter

edd_sl_api_request_verify_ssl

Updated
On this page

Filters whether SSL is verified for requests from the extension updater to the license store.

Runs in RestroPress_Addon_Updater::verify_ssl(). The result is cast to bool and used for requests to the store API. Return false to skip verification, for example on a local setup with a self-signed certificate.

Parameters#

ParameterTypeDescription
$verify_sslboolDefault value, true.
$thisRestroPress_Addon_UpdaterThe updater instance.

Return value#

bool. True to verify the store SSL certificate.

Example#

function my_sl_verify_ssl( $verify, $updater ) {
	return 'local' === wp_get_environment_type() ? false : $verify;
}
add_filter( 'edd_sl_api_request_verify_ssl', 'my_sl_verify_ssl', 10, 2 );

Notes#

Uses the Easy Digital Downloads Software Licensing hook name, so callbacks written for that library also run here.

Source#

Applied in:

  • includes/class-rpress-addon-updater.php (line 440), in RestroPress_Addon_Updater::verify_ssl()
Was this page helpful?