pre_wp_update_https_detection_errors WordPress Filter Hook

The pre_wp_update_https_detection_errors hook is used to detect errors when a WordPress site is updated to use HTTPS. This hook is fired before the update_option call is made.

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.


Top ↑

Parameters

$pre

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


Top ↑

Source

File: wp-includes/https-detection.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.