post_edit_form_tag WordPress Action Hook

The post_edit_form_tag hook is triggered right before the closing tag on the post editing screen. It can be used to add extra fields to the form or to modify the existing fields.

do_action( 'post_edit_form_tag', WP_Post $post ) #

Fires inside the post editor form tag.


Parameters

$post

(WP_Post)Post object.


Top ↑

More Information

Applies to the tag for the default post edit page (which is used for pages and custom post types). It is at the end of the form start tag and before the closing bracket.

<form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>>

Top ↑

Source

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

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
3.0.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.