get_sidebar

FUNCTION wp-includes\general-template.php (ligne 72) github
Fires before the footer template file is loaded.

Paramètres

Entrée :
$name = null, $args = array(
Sortie :
@param string|null $name Name of the specific footer file to use. Null for the default footer.
@param array       $args Additional arguments passed to the footer template.
@param string|null $name The name of the specialized sidebar. Default null.
@param array       $args Optional. Additional arguments passed to the sidebar template.
@return void|false Void on success, false if the template does not exist.

Utilisation

// Utilisation de la fonction get_sidebar
$result = get_sidebar($name = null, $args = array();

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...