pre_wp_get_https_detection_errors

过滤钩子
apply_filters( 'pre_wp_get_https_detection_errors', null )
参数
  • (null|WP_Error) $pre Error object to short-circuit detection, or null to continue with the default behavior.
    Required:
返回值
  • () ()
定义位置
相关勾子
registration_errorspre_get_ready_cron_jobswp_get_object_termspre_get_networkswp_authenticate_application_password_errors
相关方法
wp_get_https_detection_errorswp_update_https_detection_errorsget_settings_errorswp_get_theme_errorwp_get_plugin_errorwp_get_http_headers
引入
6.4.0
弃用
-

缩短与 HTTPS 支持相关的错误检测过程。

从过滤器返回 WP_Error 将有效地缩短尝试通过 HTTPS 向站点发出远程请求的默认逻辑,而是存储返回的 WP_Error 中的错误数组。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$support_errors = apply_filters( 'pre_wp_get_https_detection_errors', null );
$support_errors = apply_filters( 'pre_wp_get_https_detection_errors', null );
$support_errors = apply_filters( 'pre_wp_get_https_detection_errors', null );

常见问题

FAQs
查看更多 >