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 ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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