wpseek.com
WordPress开发者和主题制作者的搜索引擎



pre_wp_update_https_detection_errors › WordPress过滤钩子

Since5.7.0
已弃用The `wp_update_https_detection_errors` filter is no longer used and has been replaced by `pre_wp_get_https_detection_errors`.
› apply_filters( 'pre_wp_update_https_detection_errors', null )
参数:
  • () pre Error object to short-circuit detection, or null to continue with the default behavior.
    Required: Yes
定义在:
文档:

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.




源码

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