Introduce {$taxonomy}_term_edit_form_top
action to edit-tag-form.php.
This new action gives developers a place to output content at the beginning of the form element on edit-tags.php. Props flixos90. Fixes #35252. git-svn-id: https://develop.svn.wordpress.org/trunk@36526 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7f87a14808
commit
f50ed42ca7
@ -101,6 +101,18 @@ do_action( "{$taxonomy}_term_edit_form_tag" );
|
||||
<?php
|
||||
wp_original_referer_field( true, 'previous' );
|
||||
wp_nonce_field( 'update-tag_' . $term_id );
|
||||
|
||||
/**
|
||||
* Fires at the beginning of the Edit Term form.
|
||||
*
|
||||
* At this point, the required hidden fields and nonces have already been output.
|
||||
*
|
||||
* @since 4.5.0
|
||||
*
|
||||
* @param object $tag Current taxonomy term object.
|
||||
* @param string $taxonomy Current $taxonomy slug.
|
||||
*/
|
||||
do_action( "{$taxonomy}_term_edit_form_top", $tag, $taxonomy );
|
||||
?>
|
||||
<table class="form-table">
|
||||
<tr class="form-field form-required term-name-wrap">
|
||||
|
Loading…
Reference in New Issue
Block a user