This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: membership and content access #29802
    qpractice43qpractice43
    Participant

    Thank you for all your efforts Ernest.
    Sadly that particular function from Memberships doesn’t get all the restricted post ids, only some of them. Memberships has a lot of different ways to tag content as restricted.

    I ended up using some of your code though and applying a list of post ids of all our Sensei lessons we want to exclude.

    in reply to: membership and content access #29767
    qpractice43qpractice43
    Participant

    And this should work with index table engine or the regular engine?

    in reply to: membership and content access #29732
    qpractice43qpractice43
    Participant

    WooCommerce Memberships is pretty complicated but this is a key file where pre_get_posts filters are used
    https://gist.github.com/jondcampbell/07f0e7e80be91cb94c0c2be0ca304f0a

    in reply to: membership and content access #29723
    qpractice43qpractice43
    Participant

    Hi Ernest,

    It looks like WooCommerce Memberships uses the pre_get_posts query filtering to adjust what content is shown to members.

    Does the index table use pre_get_posts? If we switch back to the default search engine option instead of index table would that allow the pre_get_posts filtering (from Memberships) to apply?

Viewing 4 posts - 1 through 4 (of 4 total)