post_submitbox_minor_actions
Action HookDescription
Fires after the Save Draft (or Save as Pending) and Preview (or Preview Changes) buttons in the Publish meta box.Hook Information
File Location |
wp-admin/includes/meta-boxes.php
View on GitHub
|
Hook Type | Action |
Line Number | 97 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Post
|
$post
|
WP_Post object for the current post. |
Usage Examples
Basic Usage
<?php
// Hook into post_submitbox_minor_actions
add_action('post_submitbox_minor_actions', 'my_custom_function', 10, 1);
function my_custom_function($post) {
// Your custom code here
}
Source Code Context
wp-admin/includes/meta-boxes.php:97
- How this hook is used in WordPress core
<?php
92 *
93 * @since 4.4.0
94 *
95 * @param WP_Post $post WP_Post object for the current post.
96 */
97 do_action( 'post_submitbox_minor_actions', $post );
98 ?>
99 <div class="clear"></div>
100 </div>
101
102 <div id="misc-publishing-actions">
PHP Documentation
<?php
/**
* Fires after the Save Draft (or Save as Pending) and Preview (or Preview Changes) buttons
* in the Publish meta box.
*
* @since 4.4.0
*
* @param WP_Post $post WP_Post object for the current post.
*/
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.