apply_filters( ‘pre_wp_update_https_detection_errors’, null|WP_Error $pre )

This hook has been deprecated. The wp_update_https_detection_errors filter is no longer used and has been replaced by pre_wp_get_https_detection_errors instead.

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

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

Source

$support_errors = apply_filters( 'pre_wp_update_https_detection_errors', null );

Changelog

VersionDescription
6.4.0The wp_update_https_detection_errors filter is no longer used and has been replaced by pre_wp_get_https_detection_errors.
5.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.