submitpage_box
Action HookDescription
Fires before meta boxes with 'side' context are output for the 'page' post type. The submitpage box is a meta box with 'side' context, so this hook fires just before it is output.Hook Information
File Location |
wp-admin/edit-form-advanced.php
View on GitHub
|
Hook Type | Action |
Line Number | 699 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Post
|
$post
|
Post object. |
Usage Examples
Basic Usage
<?php
// Hook into submitpage_box
add_action('submitpage_box', 'my_custom_function', 10, 1);
function my_custom_function($post) {
// Your custom code here
}
Source Code Context
wp-admin/edit-form-advanced.php:699
- How this hook is used in WordPress core
<?php
694 *
695 * @since 2.5.0
696 *
697 * @param WP_Post $post Post object.
698 */
699 do_action( 'submitpage_box', $post );
700 } else {
701 /**
702 * Fires before meta boxes with 'side' context are output for all post types other than 'page'.
703 *
704 * The submitpost box is a meta box with 'side' context, so this hook fires just before it is output.
PHP Documentation
<?php
/**
* Fires before meta boxes with 'side' context are output for the 'page' post type.
*
* The submitpage box is a meta box with 'side' context, so this hook fires just before it is output.
*
* @since 2.5.0
*
* @param WP_Post $post Post object.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/edit-form-advanced.php
Related Hooks
Related hooks will be displayed here in future updates.