site_status_good_response_time_threshold

過濾鉤子
apply_filters( 'site_status_good_response_time_threshold', 600 )
引數
  • (int) $threshold Threshold in milliseconds. Default 600.
    Required:
定義位置
相關勾子
site_status_persistent_object_cache_thresholdssite_status_testssite_status_test_php_modulesrest_response_link_curiessite_status_test_result
相關方法
rest_filter_response_fields
引入
6.1.0
棄用
-

site_status_good_response_time_threshold: 這是一個過濾器鉤子,允許你在網站健康工具中為網站的響應時間設定一個自定義閾值。預設值是500ms,這意味著500ms以下的響應時間被認為是良好的響應時間。

過濾閾值,低於此閾值的響應時間被認為是好的。

預設是基於https://web.dev/time-to-first-byte/。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return (int) apply_filters( 'site_status_good_response_time_threshold', 600 );
return (int) apply_filters( 'site_status_good_response_time_threshold', 600 );
return (int) apply_filters( 'site_status_good_response_time_threshold', 600 );

常見問題

FAQs
檢視更多 >