Skip to content

Commit ca3d961

Browse files
committed
Make board member statuses not public
1 parent 77c0517 commit ca3d961

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

plugins/osi-features/inc/classes/taxonomies/class-taxonomy-status.php

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,20 @@ public function get_post_types() {
6868
* @return array
6969
*/
7070
public function get_args() {
71-
72-
return wp_parse_args(
73-
[
74-
'hierarchical' => false,
75-
'rewrite' => array(
76-
'slug' => 'about/board-of-directors',
77-
'with_front' => false,
78-
'hierarchical' => false,
79-
),
80-
],
71+
return wp_parse_args(
72+
array(
73+
'hierarchical' => false,
74+
'rewrite' => false,
75+
'public' => false,
76+
'publicly_queryable' => false,
77+
'show_ui' => true,
78+
'show_in_menu' => true,
79+
'show_in_nav_menus' => false,
80+
'show_in_rest' => true,
81+
'show_admin_column' => true,
82+
'query_var' => true,
83+
),
8184
parent::get_args()
8285
);
8386
}
84-
8587
}

0 commit comments

Comments
 (0)