Last active
February 11, 2016 23:40
-
-
Save daronspence/630075c69e658c7ce273 to your computer and use it in GitHub Desktop.
Add code to custom taxonomy meta boxes
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 | |
register_taxonomy( 'acme_custom_taxonomy', array( 'my_cpt', 'post' ), array( | |
'meta_box_cb' => 'acme_metabox_cb', | |
) ); | |
function acme_metabox_cb( $post, $box ){ | |
// Render the default hierarchical meta box form | |
post_categories_meta_box( $post, $box ); | |
// Add all of our new stuff! | |
echo "<p>This will show up below the checkboxes that you are used to!</p>"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment