• ⚠️ Important: This forum is being discontinued.

    We've moved community discussion to a new platform — better search, faster replies, and tighter integration with the Pabbly apps you already use.

    • Sunset date: 23 July 2026 (this forum will go offline after that)
    • Until then: Login remains available for 30 days
    • Continue the conversation: https://sales.pabbly.com/forum

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