Created
May 13, 2015 20:48
-
-
Save lizkaraffa/190587cfb7e653160141 to your computer and use it in GitHub Desktop.
Meta boxes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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