get_random_header_image()
Gets random header image URL from registered images in theme.
Хуков нет.
Возвращает
Строку
. Path to header image.
Использование
get_random_header_image();
Список изменений
С версии 3.2.0 | Введена. |
Код get_random_header_image() get random header image WP 6.5.2
function get_random_header_image() { $random_image = _get_random_header_data(); if ( empty( $random_image->url ) ) { return ''; } return $random_image->url; }