Switch language

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




get_footer [ WordPress Function ]

get_footer ( $name = null )
Parameters:
  • (string) $name The name of the specialised footer.
Uses:
Defined at:



Load footer template.

Includes the footer template for a theme or if a name is specified then a specialised footer will be included.

For the parameter, if the file is called "footer-special.php" then specify "special".

Source


<?php
function get_footer$name null ) {
    
do_action'get_footer'$name );

    
$templates = array();
    if ( isset(
$name) )
        
$templates[] = "footer-{$name}.php";

    
$templates[] = 'footer.php';

    
// Backward compat code will be removed in a future release
    
if ('' == locate_template($templatestrue))
        
load_templateABSPATH WPINC '/theme-compat/footer.php');
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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