Opened 15 years ago
Closed 15 years ago
#11285 closed enhancement (fixed)
/wp-admin/categories.php needs a edit_category_form_fields hook.
Reported by: | thened | Owned by: | filosofo |
---|---|---|---|
Milestone: | 3.0 | Priority: | low |
Severity: | minor | Version: | 2.9 |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | Cc: |
Description
In /wp-admin/edit-category-form.php there is a edit_category_form_fields hook at the end of the table above the submit button.
In categories.php this hook doesn't exist so you can't use the same method to attach functionality to the edit category form in both places it appears.
Having this hook in place would make developing category related plugins a lot better.
Attachments (2)
Change History (5)
#1
@
15 years ago
- Keywords has-patch commit added
- Milestone changed from Unassigned to 2.9
- Type changed from feature request to enhancement
- Version changed from 2.8.6 to 2.9
#2
@
15 years ago
- Cc westi added
- Keywords commit removed
- Milestone changed from 2.9 to 3.0
Could you attach a simple plugin demonstrating how this hook would be used.
I don't want to add a hook here which is untested and doesn't work correctly and I think this can wait till 3.0
#3
@
15 years ago
- Resolution set to fixed
- Status changed from new to closed
See: (In [12941]) Migrate Category Edit UI hooks, Standardise on custom-taxonomies hooks, add custom-fields for taxonomies UI hooks. See #11838, Fixes #11191
The category files have been removed from trunk, and merged into the Tags edit screen. I've added the hooks mentioned here in i believe.
Re-open this if the hooks in the above commit dont seem to meet your needs.
Since edit-category-form.php builds the form using a table, but categories.php uses divs, then the actions should be separate.
Patch attached adds an 'add_category_form_fields' hook.
Take a look at how to submit a patch: http://codex.wordpress.org/Reporting_Bugs#Patching_Bugs.