Turn off public for fund custom post type
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 9 Jun 2017 19:14:59 +0000 (15:14 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 9 Jun 2017 19:15:46 +0000 (15:15 -0400)
This is to keep the User Access Manager from adding it's stuff to admin
pages.

lib/funds.php

index 8297f13..bc5ae1c 100644 (file)
@@ -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