Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't restrict visability of CPT to "Hidden To Others" #188

Open
leichtgemerkt opened this issue Aug 4, 2021 · 0 comments
Open

Can't restrict visability of CPT to "Hidden To Others" #188

leichtgemerkt opened this issue Aug 4, 2021 · 0 comments

Comments

@leichtgemerkt
Copy link

I created a CPT
args = array( "label" => "Calendar", "labels" => array( "name" => "Calendars", [...] ), "description" => "", "public" => true, "show_ui" => true, "show_in_rest" => true, "rest_base" => "", "has_archive" => false, "show_in_menu" => true, "exclude_from_search" => false, "capability_type" => "post", "map_meta_cap" => true, "hierarchical" => false, "rewrite" => array( "slug" => "calendar", "with_front" => true ), "query_var" => true, ); register_post_type("ibsr_calendar", $args);

When I try to hide the content from other users it is still listing all entries in the backend. Edit and Delete restriction works but I can't hide the entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant