From dadd4858949465ecd98f103b50f4d5cbde2a4659 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 9 Jun 2017 15:14:59 -0400 Subject: [PATCH] Turn off public for fund custom post type This is to keep the User Access Manager from adding it's stuff to admin pages. --- lib/funds.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/funds.php b/lib/funds.php index 8297f13..bc5ae1c 100644 --- a/lib/funds.php +++ b/lib/funds.php @@ -44,7 +44,7 @@ function custom_post_type() { 'labels' => $labels, 'supports' => array( 'title', 'page-attributes' ), 'hierarchical' => false, - 'public' => true, + 'public' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, @@ -90,7 +90,7 @@ function fund_taxonomies() 'label' => __(CATEGORY_PLURAL), 'rewrite' => array( 'slug' => CATEGORY_SLUG ), 'capabilities' => $capabilities, - 'public ' => true, + 'public ' => false, 'show_in_quick_edit' => true, 'show_in_admin_column' => true, 'hierarchical' => true -- 2.17.1