WPDev.one
Core Function
View Source on Trac ↗

remove_meta_box()

remove_meta_box( mixed $id, mixed $screen, mixed $context )

Removes a meta box from one or more screens.

Parameters 3 required

Name / Type Description
$id
string

Meta box ID (used in the 'id' attribute for the meta box).

Required
mixed

(string | array | WP_Screen) $screen The screen or screens on which the meta box is shown (such as a post type, 'link', or 'comment'). Accepts a single screen ID, WP_Screen object, or array of screen IDs.

Required
string

$context The context within the screen where the box is set to display. Contexts vary from screen to screen. Post edit screen contexts include 'normal', 'side', and 'advanced'. Comments screen contexts include 'normal' and 'side'. Menus meta boxes (accordion sections) all use the 'side' context.

Required

Return Value

(void)
No return value description available.

Function Information

Since Version
2.6.0
Source File
wp-admin/includes/template.php
Advertisement