Created
January 19, 2017 20:34
-
-
Save hellofromtonya/a02b3d2390c6c66c21e22dc69ec3e26c to your computer and use it in GitHub Desktop.
Bare minimum to register a custom taxonomy
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
$args = array( | |
'label' => __( 'Departments', 'teambios' ), | |
'hierarchical' => true, | |
); | |
register_taxonomy( 'department', 'team-bios', $args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment