default_template_types

过滤钩子


apply_filters( 'default_template_types', $default_template_types )
参数
  • (array)
    $default_template_types
    An array of template types, formatted as [ slug => [ title, description ] ].
    Required:
定义位置
  • wp-includes/block-template-utils.php
    , line 189
引入
5.9.0
弃用

Filters the list of template types.

return apply_filters( 'default_template_types', $default_template_types );