post_submitbox_misc_actions
Action HookDescription
Fires after the post time/date setting in the Publish meta box.Hook Information
File Location |
wp-admin/includes/meta-boxes.php
View on GitHub
|
Hook Type | Action |
Line Number | 342 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Post
|
$post
|
WP_Post object for the current post. |
Usage Examples
Basic Usage
<?php
// Hook into post_submitbox_misc_actions
add_action('post_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:342
- How this hook is used in WordPress core
<?php
337 * @since 2.9.0
338 * @since 4.4.0 Added the `$post` parameter.
339 *
340 * @param WP_Post $post WP_Post object for the current post.
341 */
342 do_action( 'post_submitbox_misc_actions', $post );
343 ?>
344 </div>
345 <div class="clear"></div>
346 </div>
347
PHP Documentation
<?php
/**
* Fires after the post time/date setting in the Publish meta box.
*
* @since 2.9.0
* @since 4.4.0 Added the `$post` parameter.
*
* @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.