getarchives_where

FILTER wp-includes\general-template.php (ligne 2068) github
Filters the SQL WHERE clause for retrieving archives.

Paramètres

Entrée :
$sql_where, $parsed_args
Sortie :
@param string $sql_where   Portion of SQL query containing the WHERE clause.
@param array  $parsed_args An array of default arguments.

Utilisation

// Modifier la valeur avec le filtre 'getarchives_where'
add_filter('getarchives_where', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($sql_where) {
    // Modifier la valeur
    return $sql_where;
}

Actualités

Chargement des actualités...