From: Steve Sutton Date: Fri, 9 Jun 2017 19:14:59 +0000 (-0400) Subject: Turn off public for fund custom post type X-Git-Tag: v1.0.0^2~19 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=dadd4858949465ecd98f103b50f4d5cbde2a4659;p=WP-Themes%2Fphsacf.git Turn off public for fund custom post type This is to keep the User Access Manager from adding it's stuff to admin pages. --- 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