Commit 78c7f058 authored by John James Jacoby's avatar John James Jacoby
Browse files

Explicit `rewrite` rules for taxonomy.

parent a9ff794a
......@@ -36,6 +36,11 @@ function wp_media_categories_register_media_taxonomy() {
'parent_item' => __( 'Parent Category', 'wp-media-categories' ),
'parent_item_colon' => __( 'Parent Category:', 'wp-media-categories' ),
'search_items' => __( 'Search Categories', 'wp-media-categories' )
),
'rewrite' => array(
'with_front' => false,
'heirarchical' => true,
'slug' => 'media-category'
)
) );
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment