Skip to content

CPTs: Disable a post type's toggle if it's supported by the theme #14912

Open
@tyxla

Description

As discussed in #13568, right now if a post type is supported by the current theme, we shouldn't be able to disable it from settings. So in that case we should remove the toggle of the corresponding post type completely, and replace it with a green checkmark.

First attempt to handle this one was in #14574 (and some of the discussion happened there).

To be precise with the solution, we'll need to be able to retrieve theme supported features (the ones that are registered with add_theme_support().

We could also improve the copy a bit (no need to say "if your theme doesn't support" if we know for sure whether the theme supports the post type already).

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions