attachment_submitbox_misc_actions
Fires after the 'Uploaded on' section of the Save meta box in the attachment editing screen.
Использование
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.
Список изменений
С версии 3.5.0 | Введена. |
С версии 4.9.0 | Added the $post parameter. |
Где вызывается хук
attachment_submitbox_misc_actions
wp-admin/includes/meta-boxes.php 460
do_action( 'attachment_submitbox_misc_actions', $post );
Где используется хук в WordPress
wp-admin/includes/admin-filters.php 18
add_action( 'attachment_submitbox_misc_actions', 'attachment_submitbox_metadata' );