• Resolved jennnjennjen

    (@jennnjennjen)


    Hi I’m trying to figure out if there’s a function that can identify whether a user is a subscriber to your premium content (via Payments — https://wordpress.com/support/wordpress-editor/blocks/premium-content-block/#setup).

    (Just for clarity, I am not referring to people who are registered users of my site. I’m referring specifically to people who have paid via Jetpack’s Payments capabilities for a reoccurring subscription to view premium content.)

    I’m looking for something similar to is_user_logged_in() but a function that LIMITS it to my premium content subscribers only.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @jennnjennjen

    Do you mean something like you would find in wp-admin>Tools>Earn, then clicking Collect Payments in the Manage Payments box? Going there will create a list of the paid subscribers.

    Also, as you are a paying Jetpack customer, you can get support via email, which will likely be more responsive, by clicking the Blue question mark in the lower right corner of your dashboard, then clicking Contact Us.

    Thread Starter jennnjennjen

    (@jennnjennjen)

    Hi Bruce,

    Thanks for your response. I’m looking for a WordPress/php function (similar to is_user_logged_in() except for paid subscribers) that will return whether or not a user is a paid subscriber.

    I see that I have the ability to view the list in the dashboard, but I’m looking specifically for a php function to use in the code.

    Is there something like that? I’ve found that the forums have been a better place to get help regarding coding questions than the Jetpack support, but perhaps I will try asking them, too.

    • This reply was modified 3 years, 1 month ago by jennnjennjen.
    • This reply was modified 3 years, 1 month ago by jennnjennjen.

    Hi @jennnjennjen

    I’m afraid this is beyond the scope of the support we can offer here.

    You may want to consider hiring someone so that you can give them direct access to the site for a far more efficient customization than we can provide here.

    Please try https://jobs.wordpress.net/ or https://jetpack.pro/ if you need help.

    Let me know if you have any questions.

    My best regards,

    Michelle

    Thread Starter jennnjennjen

    (@jennnjennjen)

    Hi Michelle — I’m not asking anyone to code anything for me.

    I just want to know if a php function exists within Jetpack that returns whether a given user is a premium subscriber? If so, can you tell me what it is?

    Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @jennnjennjen

    Maybe this?

    Automattic\Jetpack\Extensions\Premium_Content\current_visitor_can_access()

    You can see it in this GitHub post.

    Thread Starter jennnjennjen

    (@jennnjennjen)

    Thank you bruce, I’ll see if I can make that work!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Premium Content Subscriber’ is closed to new replies.