Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
Browse Source
View Tickets
Search
Context Navigation
Back to Ticket #9674
Ticket #9674
: include-exclude-boxes.php
File include-exclude-boxes.php,
197 bytes
(added by scribu,
3 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'
);
Download in other formats:
Original Format