WP HOOKS
filtrod 3.1.0

terms_clauses

Args 3Plik wp-includes/class-wp-term-query.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the terms query SQL clauses.

Parametry

ParametrTypOpis
$clausesstring[]{ 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. }
$taxonomiesstring[]An array of taxonomy names.
$argsarrayAn 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
}

Popularne w tej kategorii