category_term_edit_form_top │ хук-событие │ WP 4.5.0

Fires at the beginning of the Edit Term form.

At this point, the required hidden fields and nonces have already been output.

Это один из вариантов динамического хука (taxonomy)_term_edit_form_top

Использование

add_action( 'category_term_edit_form_top', 'wp_kama_category_term_edit_form_top_action', 10, 2 );

/**
 * Function for `category_term_edit_form_top` action-hook.
 * 
 * @param WP_Term $tag      Current taxonomy term object.
 * @param string  $taxonomy Current $taxonomy slug.
 *
 * @return void
 */
function wp_kama_category_term_edit_form_top_action( $tag, $taxonomy ){
	// action...
}
$tag(WP_Term)
Current taxonomy term object.
$taxonomy(строка)
Current $taxonomy slug.

Список изменений

С версии 4.5.0 Введена.

Где вызывается хук

В файле: /wp-admin/edit-tag-form.php
category_term_edit_form_top
wp-admin/edit-tag-form.php 141
do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy );

Где используется хук в WordPress

Использование не найдено.