Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › restricting results › Reply To: restricting results
May 26, 2021 at 12:38 pm
#33424
Keymaster
Hi,
Does the s2member plugin has an api? That code looks all right to me, but I assume the current_user_can function does not work with the s2member plugin.
There is probably a different function to check if the current user can access the post by ID.