Make WordPress Core

Opened 3 years ago

Closed 8 days ago

#21014 closed enhancement (wontfix)

Add Action to Form Tags In Settings Pages

Reported by: desrosj Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4
Component: Plugins Keywords:
Focuses: administration Cc:


It would be nice to have additional hooks that allow adding attributes to form tags in settings pages.

For example, if you would like to allow a user to upload an image in a settings page, you need to add the enctype attribute to the form tag. Having a hook would allow you to avoid doing this with JS.

user-edit.php and user-new.php allow this using the 'user_edit_form_tag' and 'user_new_form_tag' hooks respectively, and it appears that edit-tag-form.php is adding this also. (http://core.trac.wordpress.org/ticket/15261)

Change History (4)

comment:1 @nacin21 months ago

  • Component changed from General to Plugins

comment:2 @nacin20 months ago

  • Component changed from Plugins to Admin APIs
  • Focuses administration added

comment:3 @nacin20 months ago

  • Component changed from Admin APIs to Plugins

Sorry for the noise.

comment:4 @DrewAPicture8 days ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Hi @desrosj, sorry it took so long for somebody to respond.

There doesn't seem to have been any additional interest in adding a hook for this purpose by anyone else. Therefore, closing as wontfix. Thanks for the suggestion!

Note: See TracTickets for help on using tickets.