Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_random_header_image [ WordPress Function ]

get_random_header_image ( No parameters )
Returns:
  • (string) Path to header image
Defined at:



Get random header image url from registered images in theme.

Source


<?php
function get_random_header_image() {
    
$random_image _get_random_header_data();
    if ( empty( 
$random_image->url ) )
        return 
'';
    return 
$random_image->url;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics