Adding ProductLift SSO to WordPress

How to get there: Go to Settings in the sidebar → Single Sign-on tab (under Distribution). Then follow the WordPress plugin setup steps below.

Step 1: Add the ProductLift SDK to Your Theme Add this code to your theme's functions.php or use a custom HTML plugin to add it to your site's footer:


add_action('wp_footer', function() {
    if (is_user_logged_in()) {
        $current_user = wp_get_current_user();
        ?>

        window.PQ=window.PQ||[];window.ProductLiftIdentify=window.ProductLiftIdentify||function(u){PQ.push(u)};
        ProductLiftIdentify({
            email: '',
            uid: '',
            name: '',
            avatar_url: ''
        });