WP HOOKS
filtrdynamicznyod 2.3.0

edit_{$taxonomy}_{$field}

Args 2Plik wp-includes/taxonomy.php

Opis — z kodu źródłowego

Filters the taxonomy field to edit before it is sanitized.

The dynamic portions of the filter name, $taxonomy and $field, refer to the taxonomy slug and taxonomy field, respectively.

Parametry

ParametrTypOpis
$valuemixedValue of the taxonomy field to edit.
$term_idintTerm ID.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'edit_{$taxonomy}_{$field}', 'twoja_funkcja', 10, 2 );

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

Popularne w tej kategorii