Make WordPress Core

Opened 11 years ago

Closed 9 years ago

#22734 closed feature request (worksforme)

do_action-post_edit_form_tag

Reported by: bems78's profile bems78 Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4.2
Component: Posts, Post Types Keywords: reporter-feedback
Focuses: administration Cc:

Description

Possible to add an action on the form for adding media.

File : /wp-admin/media.php
Line : 115
<form method="post" action="" class="media-upload-form" id="media-single-form">

to

<form method="post" action="" class="media-upload-form" id="media-single-form"<?php do_action('post_edit_form_tag'); ?>>

Change History (7)

#1 follow-up: @helenyhou
11 years ago

  • Keywords reporter-feedback added; needs-refresh removed

Why?

#2 @SergeyBiryukov
11 years ago

  • Component changed from General to Administration

#3 in reply to: ↑ 1 @bems78
11 years ago

Replying to helenyhou:

Why?

To be able to add files with media.
For example, associate the files subtitles (.srt) or file alternative (.ogv, .webm, .flv ..) or poster image.

Without using jQuery script ...

#4 @SergeyBiryukov
11 years ago

Not sure I understand the use case. Could you provide an example code that would use this action?

#5 @ocean90
11 years ago

Related/Duplicate: #24516

For the record: post_edit_form_tag already exists in edit-form-advanced.php.

Last edited 11 years ago by ocean90 (previous) (diff)

#6 @jeremyfelt
10 years ago

  • Component changed from Administration to Posts, Post Types
  • Focuses admin added

#7 @wonderboymusic
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.