submitpost_box WordPress Action Hook
The submitpost_box hook is used to add extra fields to the post submission form. This hook is useful for customizing the post submission form to include additional information that is not provided by default. The submitpost_box hook can be used to add extra fields to the post submission form, such as a custom field for the post author's name.
do_action( 'submitpost_box', WP_Post $post ) #
Fires before meta boxes with ‘side’ context are output for all post types other than ‘page’.
Description
The submitpost box is a meta box with ‘side’ context, so this hook fires just before it is output.
Parameters
- $post
(WP_Post)Post object.
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |