Make WordPress Core

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
3function configure_boxes($post_type) {
4        if ( $post_type != 'thingy' )
5                return;
6
7        remove_meta_box('trackbacksdiv', $post_type, 'normal');
8}
9
10add_action('add_meta_boxes', 'configure_boxes');