函数原型
register_default_headers( array $headers )
函数描述
Registers a selection of default headers to be displayed by the custom header admin UI.
是否弃用
未弃用
函数参数
-
$headers
array
Required - Array of headers keyed by a string ID. The IDs point to arrays containing
'url','thumbnail_url', and'description'keys.
函数返回值
无
函数位置
File: wp-includes/theme.php.
函数源码
function register_default_headers( $headers ) {
global $_wp_default_headers;
$_wp_default_headers = array_merge( (array) $_wp_default_headers, (array) $headers );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |

