apply_filters( 'pre_wp_update_https_detection_errors', null|WP_Error $pre )
- Since
- 5.7.0
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.
Compatibility
Deprecated in WordPress 6.4.0. The <code>wp_update_https_detection_errors</code> filter is no longer used and has been replaced by <code>pre_wp_get_https_detection_errors</code>.
- WordPress
- since 5.7.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$prenull|WP_Error- Error object to short-circuit detection, or null to continue with the default behavior.
Where this hook fires · 1
wp-includes/deprecated.php:5999wp_update_https_detection_errors()
Source code
* @since 5.7.0 * @deprecated 6.4.0 The `wp_update_https_detection_errors` filter is no longer used and has been replaced by `pre_wp_get_https_detection_errors`. * * @param null|WP_Error $pre Error object to short-circuit detection, * or null to continue with the default behavior. */ $support_errors = apply_filters( 'pre_wp_update_https_detection_errors', null ); if ( is_wp_error( $support_errors ) ) { update_option( 'https_detection_errors', $support_errors->errors, false ); return; } $support_errors = wp_get_https_detection_errors();Changelog
Introduced in 5.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
6.4.0
Deprecated. The
wp_update_https_detection_errors filter is no longer used and has been replaced by pre_wp_get_https_detection_errors.from the docblock5.7.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.