attachment_submitbox_misc_actions
Action HookDescription
Fires after the 'Uploaded on' section of the Save meta box in the attachment editing screen.Hook Information
File Location |
wp-admin/includes/meta-boxes.php
View on GitHub
|
Hook Type | Action |
Line Number | 460 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Post
|
$post
|
WP_Post object for the current attachment. |
Usage Examples
Basic Usage
<?php
// Hook into attachment_submitbox_misc_actions
add_action('attachment_submitbox_misc_actions', 'my_custom_function', 10, 1);
function my_custom_function($post) {
// Your custom code here
}
Source Code Context
wp-admin/includes/meta-boxes.php:460
- How this hook is used in WordPress core
<?php
455 * @since 3.5.0
456 * @since 4.9.0 Added the `$post` parameter.
457 *
458 * @param WP_Post $post WP_Post object for the current attachment.
459 */
460 do_action( 'attachment_submitbox_misc_actions', $post );
461 ?>
462 </div><!-- #misc-publishing-actions -->
463 <div class="clear"></div>
464 </div><!-- #minor-publishing -->
465
PHP Documentation
<?php
/**
* Fires after the 'Uploaded on' section of the Save meta box
* in the attachment editing screen.
*
* @since 3.5.0
* @since 4.9.0 Added the `$post` parameter.
*
* @param WP_Post $post WP_Post object for the current attachment.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/includes/meta-boxes.php
Related Hooks
Related hooks will be displayed here in future updates.