Opened 3 years ago
Last modified 2 years ago
#15261 reopened enhancement
Add do_action to form tag in edit-tag-form.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Administration | Version: | 3.1 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | JustinSainton |
Description
How about adding additional actions to the form tags in admin taxonomy pages like edit-tag-form.php?
An example can be found in user-edit.php line 183:
<form id="your-profile" ... method="post"<?php do_action('user_edit_form_tag'); ?>>
Attachments (1)
Change History (6)
comment:1
scribu
— 3 years ago
- Milestone Awaiting Review deleted
- Resolution set to invalid
- Status changed from new to closed
- Type changed from feature request to enhancement
comment:2
scribu
— 3 years ago
- Milestone set to Awaiting Review
- Resolution invalid deleted
- Status changed from closed to reopened
Sorry, misread.
What is the use case for this?
comment:3
linguasite
— 3 years ago
With an action like this it would be possible to set the form enctype to multipart, for example. Necessary for file upload fields in the form. The only way to change the form encoding at the moment is doing it with JS.
Furthermore it could be useful to add events or a target to the form tag itself.
comment:4
nacin
— 2 years ago
- Keywords needs-patch added; action edit tag removed
- Milestone changed from Awaiting Review to Future Release
comment:5
JustinSainton
— 2 years ago
- Cc JustinSainton added
- Keywords has-patch needs-testing added; needs-patch removed
Note: See
TracTickets for help on using
tickets.
There already are plenty of hooks in wp-admin/edit-tag-form.php