Make WordPress Core

Opened 12 years ago

Closed 9 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:


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 @ryan
12 years ago

  • Milestone set to 2.0.3
  • Owner changed from anonymous to ryan
  • Version changed from 1.2 to 2.0.2

#2 @foolswisdom
12 years ago

  • Milestone changed from 2.0.3 to 2.1

#3 @ryan
12 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4482]) Add edit_category_form hook. fixes #2717

#4 @Viper007Bond
12 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.

#5 @ryan
12 years ago

All of our form hooks are below the fold.

#6 @ryan
12 years ago

True about the table though. Hmmmm...

#7 @Viper007Bond
12 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.

#8 @matt
11 years ago

  • Resolution set to duplicate
  • Status changed from reopened to closed

#9 @Nazgul
11 years ago

  • Milestone 2.1 deleted

#10 @FireDollJamie
10 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?

#11 @lloydbudd
10 years ago

  • Milestone set to 2.6

#12 @Denis-de-Bernardy
9 years ago

  • Milestone 2.9 deleted
  • Resolution set to duplicate
  • Status changed from reopened to closed

dup of #8831

Note: See TracTickets for help on using tickets.