remove_meta_box [ WordPress Function ]
remove_meta_box ( $id, $screen, $context )
| Parameters: |
|
| Defined at: |
|
Benzer Fonksiyonlar: remove_theme_mod, do_meta_boxes, remove_theme_mods, add_meta_box, remove_menu_page
Remove a meta box from an edit form.
Source
<?php
function remove_meta_box($id, $screen, $context) {
global $wp_meta_boxes;
if ( empty( $screen ) )
$screen = get_current_screen();
elseif ( is_string( $screen ) )
$screen = convert_to_screen( $screen );
$page = $screen->id;
if ( !isset($wp_meta_boxes) )
$wp_meta_boxes = array();
if ( !isset($wp_meta_boxes[$page]) )
$wp_meta_boxes[$page] = array();
if ( !isset($wp_meta_boxes[$page][$context]) )
$wp_meta_boxes[$page][$context] = array();
foreach ( array('high', 'core', 'default', 'low') as $priority )
$wp_meta_boxes[$page][$context][$priority][$id] = false;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/remove meta box « WordPress Codex
The remove_meta_box() function was introduced in WordPress 2.6. It allows plugin developers to remove sections from the Write Post, Write Page, and Write ...
codex.wordpress.org - Fatal error: Call to undefined function remove_meta_box()
[resolved] Fatal error: Call to undefined function remove_meta_box() (7 posts). JacoboPolavieja. Member Posted 1 year ago #. Hello all,. I'm trying to remove the ...
wordpress.org - Dashboard Widgets API « WordPress Codex
To remove dashboard widget, use the remove_meta_box() function. See the example code below for the required parameters. These are the names of the ...
codex.wordpress.org - Uncluttering the post editing screen in WordPress
Apr 13, 2011 ... remove_meta_box( 'commentsdiv', 'post', 'normal' ); ... All you need to do is drop any calls to the remove_meta_box() function inside your ...
justintadlock.com
Kullanýcý Tartýþmalarý [ wordpress.org ]
- Janick on "[Plugin: Role Scoper] Remove meta box post/page edit panel"
- kevinB on "[Plugin: Role Scoper] Remove meta box post/page edit panel"
- Janick on "[Plugin: Role Scoper] Remove meta box post/page edit panel"
- mkjar on "Post Types vs Post Formats with remove_meta_box function"
- robflate on "Post Types vs Post Formats with remove_meta_box function"
- mkjar on "Post Types vs Post Formats with remove_meta_box function"
- azureardee on "Fatal error: Call to undefined function remove_meta_box()"
- amuralikumar on "Requesting to add all available list of metabox id's"
- amuralikumar on "Requesting to add all available list of metabox id's"
- Michael Fields on "Fatal error: Call to undefined function remove_meta_box()"