WordPress at Your Fingertips
filter is not described

pre_wp_update_https_detection_errors filter-hook . WP 5.7.0

Short-circuits the process of detecting errors related to HTTPS support.

Returning a WP_Error from the filter will effectively short-circuit the default logic of trying a remote request to the site over HTTPS, storing the errors array from the returned WP_Error instead.


add_filter( 'pre_wp_update_https_detection_errors', 'filter_function_name_5719' );
function filter_function_name_5719( $pre ){
	// filter...

	return $pre;
Error object to short-circuit detection, or null to continue with the default behavior.


Since 5.7.0 Introduced.

Where the hook is called

wp-includes/https-detection.php 102
$support_errors = apply_filters( 'pre_wp_update_https_detection_errors', null );

Where in WP core the hook is used WordPress

Usage not found.