WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 6 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)

comment:1 @ryan9 years ago

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

comment:2 @foolswisdom9 years ago

  • Milestone changed from 2.0.3 to 2.1

comment:3 @ryan8 years ago

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

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

comment:4 @Viper007Bond8 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.

comment:5 @ryan8 years ago

All of our form hooks are below the fold.

comment:6 @ryan8 years ago

True about the table though. Hmmmm...

comment:7 @Viper007Bond8 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.

comment:8 @matt8 years ago

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

comment:9 @Nazgul8 years ago

  • Milestone 2.1 deleted

comment:10 @FireDollJamie7 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?

comment:11 @lloydbudd7 years ago

  • Milestone set to 2.6

comment:12 @Denis-de-Bernardy6 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.