Created
March 14, 2014 11:10
-
-
Save ScreamingDev/9545840 to your computer and use it in GitHub Desktop.
taxonomie kommt nicht
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
| function codex_muse_subcategory_taxonomy_init() { | |
| // create a new taxonomy | |
| register_taxonomy( | |
| 'subcategory', | |
| 'page', | |
| array( | |
| 'label' => __( 'Untermenüs' ), | |
| 'rewrite' => array( 'slug' => 'unterkategorien' ), | |
| 'capabilities' => array( | |
| 'assign_terms' => 'edit_guides', | |
| 'edit_terms' => 'publish_guides' | |
| ) | |
| ) | |
| ); | |
| } | |
| add_action( 'init', 'codex_muse_subcategory_taxonomy_init' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment