• Resolved codemacher

    (@codemacher)


    Hi Matt,

    for an upcoming magazine page we sell single posts with your plugin. Additionally the page should use memberships, so we decided to use the woocommerce membership plugin. I assumed it before, but this is conflicting each other.
    So my question is not to support the membership plugin, but perhaps you can give me an hint about a hook or something, where i can attach custom code for your plugin to verify, if an user has access to the content through your plugin. In that custom code i would integrate request to determine membership restriction and i hope to get both plugins working together.
    the use case i need: there are restricted posts, which can be accessed either when the user buy a product (postXYZ product) or he is a member through the membership plugin.

    Regards and thanks for your support.

    • This topic was modified 6 years, 8 months ago by codemacher.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter codemacher

    (@codemacher)

    I digged deeper and the problem seems to be the kind you register the ‘restrict_content’ filter. You used an anonymous instance to register (not available outside the method) and so I can not get the instance of Woocommerce_Pay_Per_Post_Public, which is used for register the the_content filter.
    Am I right?

    Thread Starter codemacher

    (@codemacher)

    I extended the plugin to get that working. How to show you my changes? Should I do it with the repository and commit the changes?

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘woocommerce membership plugin’ is closed to new replies.