Thank you for reaching out to us.
Sorry but any custom coding related stuff needs to be handled as a custom development job so dedicated time can be allocated by the developer and a proper response can be given. Otherwise, we won’t be able to really investigate the requirement and check the code then respond with a solution.
You can use the following contact form to get in contact with us.
https://simple-membership-plugin.com/contact/
Kind regards.
Sorry for the confusion. I’m not requesting any custom code as I can code this per site. But hopefully it will be possible to get this plugin compatible with the relevanssi search plugin in general for other sites.
Currently when both plugins are installed draft statuses show in search results due to how the relevanssi plugin checks if a user can access a post in Simple Membership using the can_i_read_post function.
Other membership plugins have similar filters to check if a user should have access to a post that isn’t in a draft/private status, however using the can_i_read_post it doesn’t check if a post is published or not. Should the can_i_read_post function be set to check that?
I have reached out to Relevanssi regarding this but they couldn’t say why the SM plugin did this. If this isn’t a suitable filter to use in general for other plugins I can reach out to Relevanssi again to recommend they change their code to prevent draft posts showing in search results.
Thank you for clarifying your question further. Currently we have the following filters and hooks available. Please check them and let me know if they help you in any way.
Filter hooks = https://simple-membership-plugin.com/simple-membership-filter-hook-reference/
Action hooks = https://simple-membership-plugin.com/simple-membership-action-hook-reference/
Kind regards.