#38503 closed defect (bug) (invalid)
{$taxonomy}_term_new_form_tag is suspicious.
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.7 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
In the code view (edit-tags.php), this action is written in the <form> opening tag itself like attributes, but not the content of the tag for human.
Is this really intended to?
395 <form id="addtag" method="post" action="edit-tags.php" class="validate"
396 <?php
397 /
398 * Fires at the beginning of the Add Tag form.
399 *
400 * The dynamic portion of the hook name, $taxonomy
, refers to the taxonomy slug.
401 *
402 * @since 3.7.0
403 */
404 do_action( "{$taxonomy}_term_new_form_tag" );
405 ?>>
Change History (4)
#1
follow-up:
↓ 3
@
8 years ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
#3
in reply to:
↑ 1
@
8 years ago
Thanks @dd32, for quick react.
I knew for adding content in that form with {$taxonomy}_add_form_fields.
I suspected that because of the description in Code Reference says
Fires at the beginning of the Add Tag form.
this sentence is not understandable rightly, I think.
At least, it doesn't explain about to add attributes.
https://developer.wordpress.org/reference/hooks/taxonomy_term_new_form_tag/
Welcome to Trac @princepink!
Yes, it's intended that the action is fired within the Tag, as it's purpose is to add extra attributes to the
<form>
opening tag itself.You should look into the
{$taxonomy}_add_form_fields
action if you'd like to add extra fields to the new term form.