apply_filters( 'pre_wp_update_https_detection_errors', null|WP_Error $pre )

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

Description

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.

Parameters

$pre

(null|WP_Error) Error object to short-circuit detection, or null to continue with the default behavior.

Source

File: wp-includes/https-detection.php

View on Trac

Changelog

Version Description
5.7.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_wp_update_https_detection_errors