register_default_headers
Register a selection of default headers to be displayed by the custom header admin UI.
Description
register_default_headers( (array) $headers );
Parameters (1)
- 0. $headers (array)
- Array of headers keyed by a string id. The ids point to arrays containing url,, thumbnail_url , and description keys.
Usage
if ( !function_exists( 'register_default_headers' ) ) { require_once ABSPATH . WPINC . '/theme.php'; } // Array of headers keyed by a string id. The ids point to arrays containing 'url', 'thumbnail_url', and 'description' keys. $headers = array(); // NOTICE! Understand what this does before running. $result = register_default_headers($headers);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/theme.php
- function register_default_headers( $headers ) {
- global $_wp_default_headers;
- $_wp_default_headers = array_merge( (array) $_wp_default_headers, (array) $headers );
- }