get_random_header_image()
Gets random header image URL from registered images in theme.
Return
(string) Path to header image.
Source
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; }
Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_random_header_image