edit_form_top WordPress Action Hook

The edit_form_top hook is called before the default editor interface is loaded for a new post or page. This hook can be used to add custom fields to the default editor interface.

do_action( 'edit_form_top', WP_Post $post ) #

Fires at the beginning of the edit form.


Description

At this point, the required hidden fields and nonces have already been output.


Top ↑

Parameters

$post

(WP_Post)Post object.


Top ↑

Source

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

View on Trac


Top ↑

Changelog

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