WordPress.org

Make WordPress Core

Opened 20 months ago

Last modified 5 months ago

#22734 new feature request

do_action-post_edit_form_tag

Reported by: bems78 Owned by:
Milestone: Awaiting Review 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 (6)

comment:1 follow-up: helenyhou20 months ago

  • Keywords reporter-feedback added; needs-refresh removed

Why?

comment:2 SergeyBiryukov20 months ago

  • Component changed from General to Administration

comment:3 in reply to: ↑ 1 bems7820 months 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 ...

comment:4 SergeyBiryukov20 months ago

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

comment:5 ocean9013 months ago

Related/Duplicate: #24516

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

Last edited 13 months ago by ocean90 (previous) (diff)

comment:6 jeremyfelt5 months ago

  • Component changed from Administration to Posts, Post Types
  • Focuses admin added
Note: See TracTickets for help on using tickets.