Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Restrict CPT's to public ones only #264

Closed
BinaryMoon opened this issue Sep 14, 2016 · 3 comments
Closed

Restrict CPT's to public ones only #264

BinaryMoon opened this issue Sep 14, 2016 · 3 comments
Milestone

Comments

@BinaryMoon
Copy link

In my test environment I use WooCommerce, BBPress, and Jetpack. This might be an extreme but I also think it's a realistic prospect. Stores often have support/ community forums.

When I enable Customize Posts I see lots of CPT's for WooCommerce, BBPress, and Jetpack. There's a lot of them :)

For example in WooCommerce I see the 'Orders' CPT. But this is not something I would want to edit through the Customizer.

At the moment it looks like you're using the CPT show_ui property to determine if a post type should be listed. I've tested switching this for the public property - and it seems to tidy things up nicely. This also means you can remove the Jetpack specific code that is removing support for the Feedback CPT.

@westonruter
Copy link
Contributor

Good suggestion. And the show_in_customizer flag can still be provided to override public being false.

@westonruter
Copy link
Contributor

@BinaryMoon give #265 a try.

@BinaryMoon
Copy link
Author

looks great! :)

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants