-
-
Save aduth/cc858440e8d49e624fd75d318e7eca67 to your computer and use it in GitHub Desktop.
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
<?php | |
/** | |
* Plugin name: Demo Meta | |
*/ | |
function demo_meta_box_add() { | |
add_meta_box( | |
'demo-meta-box', | |
'Demo Meta Box', | |
'demo_meta_box_callback', | |
'post', | |
'normal', | |
'high' | |
); | |
} | |
add_action( 'add_meta_boxes', 'demo_meta_box_add' ); | |
function demo_meta_box_callback() { | |
echo '<input>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment