Skip to:
Content
Pages
Categories
Search
Top
Bottom

Frienship Request Email but no request on site

Viewing 1 replies (of 1 total)

  • josh.grisdale
    Participant

    @joshgrisdale

    Solved it!

    The social login wasn’t setting a Display Name in the extended profile. so I added some code to functions.php to set the extended profile Display Name to be their user name and it started working.

    feild 1 in my extended profile is Display Name, so:

    function update_names( $user_id ) {
    	$data = get_userdata( $user_id );
    	$username = $data->user_login;
    	$xdisplay = xprofile_get_field_data( 1, $user_id );
    	if (empty($xdisplay)) {
            xprofile_set_field_data( 1, $user_id, $username);
        }
    }
    add_action( 'user_register', 'update_names' );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar