WordPress.org
News
Showcase
Hosting
Extend
Themes
Plugins
Patterns
Blocks
Openverse
↗
︎
Learn
Learn WordPress
Documentation
Forums
Developers
WordPress.tv
↗
︎
Community
Make WordPress
Photo Directory
Five for the Future
Events
Job Board
↗
︎
About
About WordPress
Enterprise
Gutenberg
↗
︎
Get WordPress
Search Trac
Get WordPress
Make WordPress Core
Blog
Handbook
Tickets
Components
Browse Source
Trac Timeline
Create a New Ticket
Search:
Login
Notifications
Context Navigation
Back to Ticket #9674
Ticket #9674
: include-exclude-boxes.php
File include-exclude-boxes.php,
197 bytes
(added by
scribu
,
15 years ago
)
Example usage for 'add_meta_boxes' hook
Line
1
<?php
2
3
function
configure_boxes
(
$post_type
)
{
4
if
(
$post_type
!=
'thingy'
)
5
return
;
6
7
remove_meta_box
(
'trackbacksdiv'
,
$post_type
,
'normal'
);
8
}
9
10
add_action
(
'add_meta_boxes'
,
'configure_boxes'
);
Trac UI Preferences
Download in other formats:
Original Format