Filter the notes WHERE clause before retrieving the data. Allows modification of the notes select criterial.
$where_clauses, $args, $context
Sortie :
@param string $where_clauses The generated WHERE clause. @param array $args The original arguments for the request. @param string $context Optional argument that the woocommerce_note_where_clauses filter can use to determine whether to apply extra conditions. Extensions should define their own contexts and use them to avoid adding to notes where clauses when not needed.
// Modifier la valeur avec le filtre 'woocommerce_note_where_clauses'
add_filter('woocommerce_note_where_clauses', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($where_clauses) {
// Modifier la valeur
return $where_clauses;
}
Chargement des actualités...