filtrod 3.1.0
terms_clauses
Opis — z kodu źródłowego
Filters the terms query SQL clauses.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$clauses | string[] | { Associative array of the clauses for the query. @type string $fields The SELECT clause of the query. @type string $join The JOIN clause of the query. @type string $where The WHERE clause of the query. @type string $distinct The DISTINCT clause of the query. @type string $orderby The ORDER BY clause of the query. @type string $order The ORDER clause of the query. @type string $limits The LIMIT clause of the query. } |
$taxonomies | string[] | An array of taxonomy names. |
$args | array | An array of term query arguments. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'terms_clauses', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'terms_clauses', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii