WP HOOKS
akcjaod 2.5.0

delete_term

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

Opis — z kodu źródłowego

Fires after a term is deleted from the database and the cache is cleaned.

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

Parametry

ParametrTypOpis
$termintTerm ID.
$tt_idintTerm taxonomy ID.
$taxonomystringTaxonomy slug.
$deleted_term\WP_TermCopy of the already-deleted term.
$object_idsarrayList of term object IDs.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'delete_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