rest_themes_collection_params

過濾鉤子
apply_filters( 'rest_themes_collection_params', $query_params )

rest_themes_collection_params: 這是WordPress中的一個過濾鉤,當REST API正在為一個主題集合設定引數時被觸發。它允許開發者在返回之前修改集合引數。

過濾主題控制器的REST API集合引數。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'rest_themes_collection_params', $query_params );
return apply_filters( 'rest_themes_collection_params', $query_params );
return apply_filters( 'rest_themes_collection_params', $query_params );

常見問題

FAQs
檢視更多 >