WP User Only Button is an add-on for the WP Stripe Checkout plugin that can be used to only show payment buttons to logged-in WordPress users. This can be useful if you are trying to set up a user only payment page or wish to protect a specific payment button from anonymous users.
How It Works
To hide/protect a payment button from anonymous users, enclose the pay button shortcode with the “wpstripeco_wp_user_only_button” shortcode.
Example 1
[wpstripeco_wp_user_only_button][wp_stripe_checkout_session name="My Product" price="2.99"][/wpstripeco_wp_user_only_button]
Example 2
[wpstripeco_wp_user_only_button][wp_stripe_checkout_payment_link url="https://buy.stripe.com/live_6gPE4jw7dMbUKdd3345"][/wpstripeco_wp_user_only_button]
The pay button will appear normally when the user is logged in to WordPress.
If the user is not logged in, a message will be shown instead.
The default message can be customized in the add-on settings (Stripe Checkout > Settings > Advanced).
Compatibility
You can use the add-on to protect these shortcode buttons from the WP Stripe Checkout plugin:
- wp_stripe_checkout_session
- wp_stripe_checkout_payment_link
Get the WP User Only Button Add-on
Note:
* Do not purchase before setting up the core plugin first. The add-on is not at fault if the core plugin does not work on your website.
* Do not purchase if you are not sure about a feature, contact us instead.
* Do not purchase to ask for more features or make the product work in a certain way.
* Do not try to scam us, we take it seriously. We are contributing to the WordPress community with free plugins and themes. If you cannot appreciate this our product is not the right choice for you.
* There is no refund/cancellation as it is a digital product.
Great addon, does exactly what I want. From my experience I really like the fast response from your tech support. They are very helpful.
@Peter, Thanks for your kind words.