Skip to content

Instantly share code, notes, and snippets.

@kisabelle
Created December 28, 2017 23:47
Show Gist options
  • Save kisabelle/e04931437558e82c6c0f80a3f2f685f3 to your computer and use it in GitHub Desktop.
Save kisabelle/e04931437558e82c6c0f80a3f2f685f3 to your computer and use it in GitHub Desktop.
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