do_meta_boxes WordPress Action Hook

The do_meta_boxes hook is used to add extra fields to the post editor screen. This hook is used to add custom fields to the post editor screen.

do_action( 'do_meta_boxes', string $post_type, string $context, WP_Post|object|string $post ) #

Fires after meta boxes have been added.


Description

Fires once for each of the default meta box contexts: normal, advanced, and side.


Top ↑

Parameters

$post_type

(string)Post type of the post on Edit Post screen, 'link' on Edit Link screen, 'dashboard' on Dashboard screen.

$context

(string)Meta box context. Possible values include 'normal', 'advanced', 'side'.

$post

(WP_Post|object|string)Post object on Edit Post screen, link object on Edit Link screen, an empty string on Dashboard screen.


Top ↑

Source

File: wp-admin/includes/meta-boxes.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.