WP HOOKS
akcjaod 2.3.0

edited_term

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

Opis — z kodu źródłowego

Fires after a term has been updated, and the term cache has been cleaned.

The {@see 'edited_$taxonomy'} hook is also available for targeting a specific taxonomy.

Parametry

ParametrTypOpis
$term_idintTerm ID.
$tt_idintTerm taxonomy ID.
$taxonomystringTaxonomy slug.
$argsarrayArguments passed to wp_update_term().

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'edited_term', 'twoja_funkcja', 10, 4 );

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

Popularne w tej kategorii