pre_wp_update_https_detection_errors filter-hookWP 5.7.0

Deprecated from version 6.4.0. It is no longer supported and can be removed in future releases. Use d and has been replaced by `pre_wp_get_https_detection_errors` instead.

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.

Usage

add_filter( 'pre_wp_update_https_detection_errors', 'wp_kama_pre_wp_update_https_detection_errors_filter' );

/**
 * Function for `pre_wp_update_https_detection_errors` filter-hook.
 * 
 * @param null|WP_Error $pre Error object to short-circuit detection, or null to continue with the default behavior.
 *
 * @return null|WP_Error
 */
function wp_kama_pre_wp_update_https_detection_errors_filter( $pre ){

	// filter...
	return $pre;
}
$pre(null|WP_Error)
Error object to short-circuit detection, or null to continue with the default behavior.

Changelog

Since 5.7.0 Introduced.
Deprecated since 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.

Where the hook is called

wp_update_https_detection_errors()
pre_wp_update_https_detection_errors
wp-includes/deprecated.php 6003
$support_errors = apply_filters( 'pre_wp_update_https_detection_errors', null );

Where the hook is used in WordPress

Usage not found.