default_template_types
云策文档标注
概述
本文档介绍了 WordPress 中的 default_template_types 过滤器,用于修改默认模板类型的列表。该过滤器允许开发者自定义模板类型的标题和描述。
关键要点
- default_template_types 是一个过滤器,用于过滤默认模板类型数组。
- 参数 $default_template_types 是一个数组,包含模板类型的数据,如标题和描述。
- 该过滤器在 WordPress 5.9.0 版本中引入,常用于 get_default_block_template_types() 函数。
原文内容
Filters the list of default template types.
Parameters
$default_template_typesarray[]
User Contributed Notes
You must log in before being able to contribute a note or feedback.