WP HOOKS
filtrod 2.2.0

getarchives_where

Args 2Plik wp-includes/general-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the SQL WHERE clause for retrieving archives.

Parametry

ParametrTypOpis
$sql_wherestringPortion of SQL query containing the WHERE clause.
$parsed_argsarrayAn array of default arguments.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'getarchives_where', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii