注册要由自定义标题管理UI显示的选择的默认标题。
原型
register_default_headers( array $headers )
参数
$headers
(array)
(Required)
由字符串id键入的标头数组。 id指向包含’url’,‘thumbnail_url’和’description’键的数组。
源文件
路径:wp-includes/theme.php
<?php
...
function register_default_headers( $headers ) {
global $_wp_default_headers;
$_wp_default_headers = array_merge( (array) $_wp_default_headers, (array) $headers );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/register_default_headers/