Forum Replies Created

Viewing 1 replies (of 1 total)
  • jayront

    (@jayront)

    Hi, It depends if you’re using Buddypress plugin or not.

    if you’re using buddypress plugin then add this to Buddypress->bp-members-bp-members-function.php

    search for this –> do_action( ‘bp_core_signup_user’, $user_id, $user_login, $user_password, $user_email, $usermeta ); (and add the following below it)

    wp_insert_post(array('post_title'=>$user_login, 'post_type'=>'sp_player', 'post_name'=>$user_login, 'post_status'=>'publish' ));

    If you’re using just wordpress to get new user accounts then search for this –> in your wordpress directory –>wp_includes->user.php

    search for $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email ); (and add this below it)

    $player = wp_insert_post(array('post_title'=>$sanitized_user_login, 'post_type'=>'sp_player', 'post_name'=>$sanitized_user_login, 'post_status'=>'publish' ));

    Hopes this helps.

    • This reply was modified 8 years ago by jayront.
Viewing 1 replies (of 1 total)