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.
$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 de la fonction get_search_form
$result = get_search_form($args = array();
if ($result) {
// Votre logique ici
}
Chargement des actualités...