WP HOOKS
akcjadynamicznyod 2.3.0

edited_{$taxonomy}

Args 3Plik wp-includes/taxonomy.php

Opis — z kodu źródłowego

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

The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug. Possible hook names include:

  • edited_category
  • edited_post_tag

Hook dynamiczny — możliwe nazwy

edited_categoryedited_post_tag

Parametry

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

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'edited_{$taxonomy}', 'twoja_funkcja', 10, 3 );

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

Popularne w tej kategorii