diff options
Diffstat (limited to 'dist/taxonomy.php')
| -rw-r--r-- | dist/taxonomy.php | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dist/taxonomy.php b/dist/taxonomy.php new file mode 100644 index 0000000..0c65806 --- /dev/null +++ b/dist/taxonomy.php @@ -0,0 +1,54 @@ +<?php +/* +if ( !defined("ABSPATH") ) { + exit; +} +*/ + +function create_taxonomy_brennerei() { + // create a new taxonomy + register_taxonomy( + 'brennerei', + 'post', + array( + 'label' => __( 'Hersteller' ), + 'hierarchical' => false, + 'rewrite' => array( 'slug' => 'brennerei' ), +/* + 'capabilities' => array( + 'assign_terms' => 'edit_guides', + 'edit_terms' => 'publish_guides' + ) +*/ + ) + ); +} +add_action( 'init', 'create_taxonomy_brennerei', 0 ); + +function create_taxonomy_whiskyregion() { + // create a new taxonomy + register_taxonomy( + 'region', + 'post', + array( + 'label' => __( 'Whiskyregion' ), + 'hierarchical' => false, + 'rewrite' => array( 'slug' => 'region' ), + ) + ); +} +add_action( 'init', 'create_taxonomy_whiskyregion', 0 ); + +function create_taxonomy_sponsor() { + // create a new taxonomy + register_taxonomy( + 'sponsor', + 'post', + array( + 'label' => __( 'Sponsored By' ), + 'hierarchical' => false, + 'rewrite' => array( 'slug' => 'sponsored' ), + ) + ); +} +add_action( 'init', 'create_taxonomy_sponsor', 0 ); |
