wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_random_header_image › WordPress Function

Depuis3.2.0
Dépréciéen/a
› get_random_header_image ( Pas de paramètres )
Retourne:
  • (string) Path to header image.
Défini(e) dans:
Codex:

Gets random header image URL from registered images in theme.



Source

function get_random_header_image() {
	$random_image = _get_random_header_data();

	if ( empty( $random_image->url ) ) {
		return '';
	}

	return $random_image->url;
}