[wp-trac] [WordPress Trac] #23148: Add hook in wp_ajax_save_attachment for additional attachment fields
WordPress Trac
noreply at wordpress.org
Wed Mar 1 17:22:09 UTC 2023
#23148: Add hook in wp_ajax_save_attachment for additional attachment fields
-------------------------------------------------+-------------------------
Reporter: griffinjt | Owner: audrasjb
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.2
Component: Media | Version: 3.5
Severity: normal | Resolution: fixed
Keywords: has-patch 2nd-opinion dev-feedback | Focuses:
needs-dev-note |
-------------------------------------------------+-------------------------
Comment (by azaozz):
Replying to [comment:46 costdev]:
> I've also added a note in the docblock that when checking if an action
is being done,
Sounds good. I'd like to expand the docs a bit more and explain that:
- There is a `wp_ajax_save-attachment` action that is very similar and is
fired earlier.
- The new `wp_ajax_save_attachment_updated` is full equivalent
(duplicate?) of using any of the `save_post` hooks and checking where the
data comes from by using `doing_action( 'wp_ajax_save-attachment' )`.
As that will be just a docs update it can be added at any time.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23148#comment:52>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list