Skip to content

Instantly share code, notes, and snippets.

@JustinSainton
Forked from lizkaraffa/gist:190587cfb7e653160141
Last active August 29, 2015 14:21
Show Gist options
  • Save JustinSainton/d5555bfb4c34ff9a788b to your computer and use it in GitHub Desktop.
Save JustinSainton/d5555bfb4c34ff9a788b to your computer and use it in GitHub Desktop.
Description
<?php
public function add_meta_box( $post_type ) {
$post_type = 'notes'; //limit meta box to certain post types
add_meta_box(
'handshaken_note_settings',
__( 'Note Settings', 'handshaken' ),
array( $this, 'render_meta_box_content_note' ),
$post_type,
'advanced',
'high'
);
$post_type = 'senders'; //limit meta box to certain post types
add_meta_box(
'handshaken_sender_settings',
__( 'Sender Settings', 'handshaken' ),
array( $this, 'render_meta_box_content_sender' ),
$post_type,
'advanced',
'high'
);
$post_type = 'recipients'; //limit meta box to certain post types
add_meta_box(
'handshaken_sender_settings',
__( 'Sender Settings', 'handshaken' ),
array( $this, 'render_meta_box_content_recipient' ),
$post_type,
'advanced',
'high'
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment