WP HOOKS
akcjadynamicznyod 4.5.0

{$taxonomy}_term_edit_form_top

Args 2Plik wp-admin/edit-tag-form.php

Opis — z kodu źródłowego

Fires at the beginning of the Edit Term form.

At this point, the required hidden fields and nonces have already been output. The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug. Possible hook names include:

  • category_term_edit_form_top
  • post_tag_term_edit_form_top

Hook dynamiczny — możliwe nazwy

category_term_edit_form_toppost_tag_term_edit_form_top

Parametry

ParametrTypOpis
$tag\WP_TermCurrent taxonomy term object.
$taxonomystringCurrent $taxonomy slug.

Wywołanie

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

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

Popularne w tej kategorii