kingstonnexus
Forum Replies Created
-
Would you be able to provide any guidance as to how I might do that?
What I ended up doing, which worked pretty well since I had the same request, was to create a brand new custom post type by copying the code for products into a new plugin, and changing the names there, and then disabling Products in the plugin settings.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Admin search with private CPTs?Okay I tried unchecking Respect exclude_from_search, but that didn’t work.
How do I set the private_cap filter?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Admin search with private CPTs?Update:
I found this article: https://www.relevanssi.com/knowledge-base/private-posts-custom-post-types/ and I added the following function:
add_filter('relevanssi_private_cap', 'private_ticket_cap'); function private_ticket_cap($cap) { if ($cap == 'read_private_ticket') $cap = 'view_private_ticket'; return $cap; }But it still seems to be not working. I also tried read_private_tickets and view_private_tickets. I also tried reindexing. Any help?
According to Awesome Support documentation, the relevant permissions are:
view_private_ticket
view_ticket