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

Restrict CPT's to public ones only #264

Description

@BinaryMoon

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo