Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Waiting for user confirmation] Follow Up question on Social Login & CRED

$
0
0

Hi Caridad,

So, you had to know I would be asking this:

Do I put this part on the Page where the CRED form is linked to?

[wpv-if evaluate="'[wpv-current-user info="login"]' != ''"]
... link to cred form ...
[/wpv-if]

and then replace … link to cred form … with the CRED form shortcode? Or do I need to put it into a VIEW?

AND THEN…

I'm really not clear about this:

add_action(‘cred_save_data’, ’my_save_data_action’,10,2);
function my_save_data_action($post_id, $form_data) {
    // if a specific form
    if ($form_data[‘id’]==12) {
        global $current_user;
        add_post_meta( $post_id, 'wpcf-email-address', $current_user->user_email );
        add_post_meta( $post_id, ''wpcf-username', $current_user->user_login  );
    }
}

Do I add this to my CRED form or functions.php.

Thanks!

Larry


Viewing all articles
Browse latest Browse all 20145

Trending Articles