WP HOOKS
akcjaod 5.5.0

saved_term

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

Opis — z kodu źródłowego

Fires after a term has been saved, and the term cache has been cleared.

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

Parametry

ParametrTypOpis
$term_idintTerm ID.
$tt_idintTerm taxonomy ID.
$taxonomystringTaxonomy slug.
$updateboolWhether this is an existing term being updated.
$argsarrayArguments passed to wp_insert_term().

Wywołanie

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

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

Popularne w tej kategorii