register_default_headers( array $headers )
Registers a selection of default headers to be displayed by the custom header admin UI.
Parameters
- $headers
-
(Required) Array of headers keyed by a string ID. The IDs point to arrays containing 'url', 'thumbnail_url', and 'description' keys.
Source
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 );
}
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |