get_search_form

FUNCTION wp-includes\general-template.php (ligne 168) github
Fires before the specified template part file is loaded. The dynamic portion of the hook name, `$slug`, refers to the slug name for the generic template part.

Paramètres

Entrée :
$args = array(
Sortie :
@param string      $slug The slug name for the generic template.
@param string|null $name The name of the specialized template
@param array       $args Additional arguments passed to the template.
@param string   $slug      The slug name for the generic template.
@param string   $name      The name of the specialized template
@param string[] $templates Array of template files to search for, in order.
@param array    $args      Additional arguments passed to the template.
@param array $args {
@return void|string Void if 'echo' argument is true, search form HTML if 'echo' is false.

Utilisation

// Utilisation de la fonction get_search_form
$result = get_search_form($args = array();

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

Actualités

Chargement des actualités...