Uses
Uses | Description |
---|---|
wp-includes/theme.php: _get_random_header_data() | Gets random header image data from registered images in theme. |
Gets random header image URL from registered images in theme.
(string) Path to header image.
File: wp-includes/theme.php
function get_random_header_image() { $random_image = _get_random_header_data(); if ( empty( $random_image->url ) ) { return ''; } return $random_image->url; }
Version | Description |
---|---|
3.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_random_header_image