site_status_persistent_object_cache_notes

過濾鉤子
apply_filters( 'site_status_persistent_object_cache_notes', $notes, $available_services )

site_status_persistent_object_cache_notes: 這是一個過濾鉤,允許你在網站健康工具的”永續性物件快取”部分新增自定義註釋。網站健康工具提供關於你的網站及其環境的健康資訊。

建議使用持久物件快取時,過濾健康檢查說明的第二段。

主機可能希望替換註釋以推薦其首選的物件快取解決方案。

外掛作者可能希望附加註釋(而不是替換),說明為什麼為外掛推薦物件快取。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$notes = apply_filters( 'site_status_persistent_object_cache_notes', $notes, $available_services );
$notes = apply_filters( 'site_status_persistent_object_cache_notes', $notes, $available_services );
$notes = apply_filters( 'site_status_persistent_object_cache_notes', $notes, $available_services );

常見問題

FAQs
檢視更多 >