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
檢視更多 >