(taxonomy)_pre_edit_form
Fires before the Edit Term form for all taxonomies.
The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
Possible hook names include:
Использование
add_action( '(taxonomy)_pre_edit_form', 'wp_kama_taxonomy_pre_edit_form_action', 10, 2 ); /** * Function for `(taxonomy)_pre_edit_form` action-hook. * * @param WP_Term $tag Current taxonomy term object. * @param string $taxonomy Current $taxonomy slug. * * @return void */ function wp_kama_taxonomy_pre_edit_form_action( $tag, $taxonomy ){ // action... }
- $tag(WP_Term)
- Current taxonomy term object.
- $taxonomy(строка)
- Current $taxonomy slug.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
В файле: /wp-admin/edit-tag-form.php
(taxonomy)_pre_edit_form
wp-admin/edit-tag-form.php 69
do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>