Skip to content

Instantly share code, notes, and snippets.

@ScreamingDev
Created March 14, 2014 11:10
Show Gist options
  • Select an option

  • Save ScreamingDev/9545840 to your computer and use it in GitHub Desktop.

Select an option

Save ScreamingDev/9545840 to your computer and use it in GitHub Desktop.
taxonomie kommt nicht
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