Created
December 28, 2017 23:47
-
-
Save kisabelle/e04931437558e82c6c0f80a3f2f685f3 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
function custom_meta_box_markup() | |
{ | |
// custom meta box markup goes here | |
} | |
function add_custom_meta_box() | |
{ | |
add_meta_box("demo-meta-box", "Custom Meta Box", "custom_meta_box_markup", "post", "side", "high", null); | |
} | |
add_action("add_meta_boxes", "add_custom_meta_box"); | |
// Source: https://www.sitepoint.com/adding-custom-meta-boxes-to-wordpress/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment