WP HOOKS
filtrod 2.3.0

term_id_filter

Args 3Plik wp-includes/taxonomy.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the term ID after a new term is created.

Parametry

ParametrTypOpis
$term_idintTerm ID.
$tt_idintTerm taxonomy ID.
$argsarrayArguments passed to wp_insert_term().

Wywołanie

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

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

Popularne w tej kategorii