woocommerce_note_where_clauses

FILTER woocommerce\src\Admin\Notes\DataStore.php (ligne 459) github
Filter the notes WHERE clause before retrieving the data. Allows modification of the notes select criterial.

Paramètres

Entrée :
$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.

Utilisation

// 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;
}

Actualités

Chargement des actualités...