Opened 19 years ago
Closed 16 years ago
#2717 closed enhancement (duplicate)
categories.php - Add edit form hook
Reported by: | seek3r | Owned by: | ryan |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.5 |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description
Please add this line immediately before the submit button on line 88 of categories.php
<?php do_action('edit_category_form', $category); ?>
This way plugins can add additional data for the categories. I want to use this in podPress for allowing custom values in the RSS2 feed based on category
Change History (12)
#1
@
19 years ago
- Milestone set to 2.0.3
- Owner changed from anonymous to ryan
- Version changed from 1.2 to 2.0.2
#4
@
18 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
- Type changed from defect to enhancement
I agree with seek3r that the hook would be better placed before the submit button, ideally right before the </table>
so that it matches the other inputs.
#7
@
18 years ago
I just ended up doing adding in my input via ob_start()
. Easier and I needed it to work with v2.0.x.
But anyway, yeah, I do agree that hooks should usually be outta the way, but the only point of that hook is to add new fields, so therefore it should be where new fields would usually go IMO.
#10
@
17 years ago
- Resolution duplicate deleted
- Status changed from closed to reopened
- Version changed from 2.0.2 to 2.5
I'll admit to being rather new to the Worpress development cycle, but agree that having the edit_category_form hook fired before the submit button and close of the table and form would simplify the plugin development process tremendously.
Also - there should be additional hooks registered during the taxonomy.php page which identify the update_category and add_category state (the form has been submitted and custom variables from the form are available for parsing into custom tables).
Perhaps with the significant admin changes as a part of 2.5, now is a good time to re-visit this ticket?
(In [4482]) Add edit_category_form hook. fixes #2717