# Action 'Register Post Type': Non-public CPT can not be seen in Admin-Menu

**URL:** https://forum.pinegrow.com/t/action-register-post-type-non-public-cpt-can-not-be-seen-in-admin-menu/8290
**Category:** WordPress
**Tags:** bug, wordpress
**Created:** [August 10, 2023, 11:53am UTC](https://forum.pinegrow.com/t/action-register-post-type-non-public-cpt-can-not-be-seen-in-admin-menu/8290 "2023-08-10T11:53:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MichelyWeb](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/michelyweb/32/6652_2.png) [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)
#### Post date: [August 10, 2023, 11:53am UTC](https://forum.pinegrow.com/t/action-register-post-type-non-public-cpt-can-not-be-seen-in-admin-menu/8290/1 "2023-08-10T11:53:23Z")

</div>

Hi there,

wanted to create an CPT for testimonials. There is no single page for each testimonial needed so i need to not make it public, but queryable and visible in dashboard.

Problem: As soon as i remove the ‘Public’ option at the panel and export the theme, then the CPT is removed from the admin menu.

Maybe that’s because it’s impossible to force ‘Show UI’:  
 ![CleanShot 2023-08-10 at 13.50.37@2x](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/1/169e295f5a3a5927cf7098ad169028ab2dfce6e0.png)

![CleanShot 2023-08-10 at 13.50.42@2x](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/7/77ffacd9aae6077cc9e82808f6cfdf1e02ae75cc.png)

I need to move the code from function.php to custom.php and add the ‘show\_ui’ =\> true value by hand to get it to work.

What am I doing wrong here?

EDIT:

See this example:

 ![CleanShot 2023-08-10 at 13.53.50@2x](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/9/9142db4e871374d9e8bd0ad686ea711fc55a9a74.png)

In Code there is no “‘show\_ui’ =\> true” value generated:

 ![CleanShot 2023-08-10 at 13.54.41@2x](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/2/29147e529de1f1b59e4ad1dac5122a368572cfb2.png)

---

<div class="post-metadata">

### Author: ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)
#### Post date: [August 10, 2023, 3:51pm UTC](https://forum.pinegrow.com/t/action-register-post-type-non-public-cpt-can-not-be-seen-in-admin-menu/8290/2 "2023-08-10T15:51:35Z")

</div>

I’ve found that the Register Post Type action in Pinegrow is missing a lot of important parameters (such as being able to rewrite the slug — feature request submitted already). I find myself writing it manually (or using an online generator) and including it in the custom.php.

---

<div class="post-metadata">

### Author: ![MichelyWeb](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/michelyweb/32/6652_2.png) [@MichelyWeb](https://forum.pinegrow.com/u/MichelyWeb)
#### Post date: [August 10, 2023, 4:07pm UTC](https://forum.pinegrow.com/t/action-register-post-type-non-public-cpt-can-not-be-seen-in-admin-menu/8290/3 "2023-08-10T16:07:31Z")

</div>

I don’t like half-baked solutions. So if PG has this function it should be complete. Not a big deal to get it done, I’ll hope. @matjaz ?
