Support » Plugin: LifterLMS » WordPress search to return all lessons containing string

Viewing 1 replies (of 1 total)
  • Plugin Author Thomas Patrick Levy

    (@thomasplevy)

    @przembar,

    Is that possible to get lessons with searched keyword?

    Lessons are intentionally excluded from search results because their content is only ever available to enrolled users.

    We’ve been criticized for this as some users don’t think that exposing lesson content via search is a problem. In that case you can easily modify this behavior with a small bit of code:

    https://gist.github.com/thomasplevy/126a0712283d1cced6c6216cdca64652

    If that’s foreign to you you can check out our guide on how to add custom code like this to your site: https://lifterlms.com/docs/how-do-i-add-custom-code-to-lifterlms-or-lifterlms-launchpad/

    If that doesn’t help you could hire a developer to assist you: https://lifterlms.com/experts

    Moreover I would like to get returned lessons what contains this string but require some rights to view it or at least some info that content is available for members etc

    The key reason we don’t expose lesson content in search is because it gets pretty complicated. Ideally the default functionality of LifterLMS would be to allow lessons to be searchable but only by users who have access to that lesson content.

    Given the methods that are currently available we’d need to filter result sets based on the ability to access that content on page load after a search. It gets pretty complicated here because there’s not straightforward way to do this. It’s not a completely impossible-to-solve problem but it’s something I simply haven’t figured out how to do yet because it’s not a terribly high priority issue in our minds.

    So the answer is that this is possible but I don’t know how to do it. One day I’d like to solve this for all users but it’s not currently a priority.

    My apologies,

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.