-
-
Save JustinSainton/d5555bfb4c34ff9a788b to your computer and use it in GitHub Desktop.
Description
This file contains hidden or 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
<?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