filtrod 4.7.0
wp_update_term_data
Opis — z kodu źródłowego
Filters term data before it is updated in the database.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$data | array | Term data to be updated. |
$term_id | int | Term ID. |
$taxonomy | string | Taxonomy slug. |
$args | array | Arguments passed to wp_update_term(). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_update_term_data', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_update_term_data', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii