• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer
    • 🔥 Pabbly Chatflow — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Pre-populate Wordpress User Email in embedded form

Hi,

I'd like to be able to pre-populate an embedded Pabbly checkout with a user's wordpress email address and name. I've already seen the suggestions at the link below.

query parameters

I've tried adding PHP code that recreates the embed URL like this using the Code Snippets plugin:

Code:
// Get current user's email address
$user_email = wp_get_current_user()->user_email;

// Build the URL with user's email address
$pabbly_url = "https://payments.pabbly.com/api/checkout/embed.js?_m=52...embed-id...2fad&email=" . $user_email;

// Output the URL as a variable
echo $pabbly_url;

And then using the variable: $pabbly_url in the Pabbly embed code, but I can't get it working.

Is there a way to make this work?

It would solve a big problem for me.

Thanks!
John
 
Top