WP HOOKS
filtrod 3.1.0

wp_update_term_parent

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

Opis — z kodu źródłowego

Filters the term parent.

Hook to this filter to see if it will cause a hierarchy loop.

Parametry

ParametrTypOpis
$parent_termintID of the parent term.
$term_idintTerm ID.
$taxonomystringTaxonomy slug.
$parsed_argsarrayAn array of potentially altered update arguments for the given term.
$argsarrayArguments passed to wp_update_term().

Wywołanie

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

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

Popularne w tej kategorii