attachment_submitbox_misc_actions
Fires after the 'Uploaded on' section of the Save meta box in the attachment editing screen.
Usage
add_action( 'attachment_submitbox_misc_actions', 'wp_kama_attachment_submitbox_misc_actions_action' ); /** * Function for `attachment_submitbox_misc_actions` action-hook. * * @param WP_Post $post WP_Post object for the current attachment. * * @return void */ function wp_kama_attachment_submitbox_misc_actions_action( $post ){ // action... }
- $post(WP_Post)
- WP_Post object for the current attachment.
Changelog
Since 3.5.0 | Introduced. |
Since 4.9.0 | Added the $post parameter. |
Where the hook is called
attachment_submitbox_misc_actions
wp-admin/includes/meta-boxes.php 460
do_action( 'attachment_submitbox_misc_actions', $post );
Where the hook is used in WordPress
wp-admin/includes/admin-filters.php 18
add_action( 'attachment_submitbox_misc_actions', 'attachment_submitbox_metadata' );