Ticket #2717 (reopened enhancement)

Opened 3 years ago

Last modified 8 months ago

categories.php - Add edit form hook

Reported by: seek3r Assigned to: ryan
Priority: normal Milestone: 2.9
Component: Administration Version: 2.5
Severity: normal Keywords:
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

05/17/06 22:20:08 changed by ryan

  • owner changed from anonymous to ryan.
  • version changed from 1.2 to 2.0.2.
  • milestone set to 2.0.3.

09/21/06 01:10:22 changed by foolswisdom

  • milestone changed from 2.0.3 to 2.1.

11/18/06 20:40:31 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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

11/18/06 22:14:10 changed by Viper007Bond

  • status changed from closed to reopened.
  • type changed from defect to enhancement.
  • resolution deleted.

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.

11/18/06 23:48:11 changed by ryan

All of our form hooks are below the fold.

11/18/06 23:49:55 changed by ryan

True about the table though. Hmmmm...

11/19/06 01:09:11 changed by Viper007Bond

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.

12/01/06 10:21:23 changed by matt

  • status changed from reopened to closed.
  • resolution set to duplicate.

06/23/07 12:08:59 changed by Nazgul

  • milestone deleted.

03/25/08 00:03:07 changed by FireDollJamie

  • status changed from closed to reopened.
  • version changed from 2.0.2 to 2.5.
  • resolution deleted.

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?

03/25/08 00:29:47 changed by lloydbudd

  • milestone set to 2.6.