Skip to content

Instantly share code, notes, and snippets.

@lizkaraffa
Created May 13, 2015 20:48
Show Gist options
  • Save lizkaraffa/190587cfb7e653160141 to your computer and use it in GitHub Desktop.
Save lizkaraffa/190587cfb7e653160141 to your computer and use it in GitHub Desktop.
Meta boxes
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