钩子文档

rest_wp_font_face_collection_params

💡 云策文档标注

概述

rest_wp_font_face_collection_params 是一个 WordPress 过滤器钩子,用于修改字体面控制器的集合参数。它允许开发者自定义查询参数,以影响字体面集合的检索行为。

关键要点

  • 这是一个过滤器钩子,应用于字体面控制器的集合参数。
  • 参数 $query_params 是一个数组,包含 JSON Schema 格式的集合参数。
  • 钩子在 WP_REST_Font_Faces_Controller::get_collection_params() 方法中使用,用于检索字体面集合的查询参数。
  • 首次引入于 WordPress 6.5.0 版本。

📄 原文内容

Filters collection parameters for the font face controller.

Parameters

$query_paramsarray
JSON Schema-formatted collection parameters.

Source

return apply_filters( 'rest_wp_font_face_collection_params', $query_params );

Changelog

Version Description
6.5.0 Introduced.