Thread Starter
alasda
(@alasda)
Thanks. I’d suggest generally that if WPP automatically applied read restriction in its query results (either across the board or as a parameterized option), it would be easier to maintain the article count inside the widget after the inaccessible results have been removed. In my case, the restrictions by role are for different audiences rather than pay/upgrade account, so the link rewriting isn’t a good fit the scenario.
Thread Starter
alasda
(@alasda)
Thanks for your prompt reply. In the scenario described, I am using a third party plugin to demonstrate the issue at hand, however this applies in all cases where a user should not be permitted to read the post in question. I believe implementing an output filter on current_user_can( ‘read_post’, $object_id ) would rectify the issue across all similar circumstances. Thoughts?