Skip to content

Commit

Permalink
WordCamp Post Types: Disable hierarchical session tracks for simplicity.
Browse files Browse the repository at this point in the history
  • Loading branch information
iandunn committed Aug 29, 2019
1 parent 73819d3 commit 9e39553
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1829,11 +1829,16 @@ public function register_taxonomies() {
'labels' => $labels,
'rewrite' => array( 'slug' => 'track' ),
'query_var' => 'track',
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_rest' => true,
'rest_base' => 'session_track',

/*
* There isn't a common or compelling use case for hierarchical tracks, and they're difficult to
* display in the Schedule block.
*/
'hierarchical' => wcorg_skip_feature( 'flat_session_tracks' ) ? true : false,
)
);

Expand Down

0 comments on commit 9e39553

Please sign in to comment.