Commit f272383a authored by Erick Hitter's avatar Erick Hitter
Browse files

More taxonomies

parent 4b1c5b8e
......@@ -10,6 +10,8 @@ class Data_Structures {
public const TAXONOMY_STYLE = '_eth_winepress_style';
public const TAXONOMY_WINEMAKER = '_eth_winepress_winemaker';
public const TAXONOMY_SOURCE = '_eth_winepress_source';
public const TAXONOMY_RATING = '_eth_winepress_rating_5';
public const TAXONOMY_BUY_AGAIN = '_eth_winepress_buy_again';
protected function _setup(): void {
add_action( 'init', [ $this, 'post_type' ] );
......@@ -35,6 +37,8 @@ class Data_Structures {
static::TAXONOMY_STYLE,
static::TAXONOMY_WINEMAKER,
static::TAXONOMY_SOURCE,
static::TAXONOMY_RATING,
static::TAXONOMY_BUY_AGAIN,
];
foreach ( $taxes as $tax ) {
......@@ -42,8 +46,13 @@ class Data_Structures {
$tax,
static::POST_TYPE,
[
'label' => $tax,
'label' => str_replace(
'_eth_winepress_',
'',
$tax
),
'public' => true,
'show_admin_column' => true,
]
);
}
......
Markdown is supported
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