Filter hook 'pre_wp_get_https_detection_errors'

in WP Core File wp-includes/https-detection.php at line 105

Description

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.

Occurrences

Filename Line Number
wp-includes/https-detection.php 105

Parameters

Type Name Description
null|WP_Error $pre Error object to short-circuit detection, or null to continue with the default behavior.

PHP Doc

/**
	 * 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.
	 *
	 * @since 6.4.0
	 *
	 * @param null|WP_Error $pre Error object to short-circuit detection,
	 *                           or null to continue with the default behavior.
	 * @return null|WP_Error Error object if HTTPS detection errors are found, null otherwise.
	 */