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.


Top ↑

Parameters

$post

(WP_Post)Post object.


Top ↑

Source

File: wp-admin/edit-form-advanced.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.