gianism_register_name
gianism_register_name
Appears in: gianism.3.2.2, gianism.3.3.0, gianism.4.0.0, gianism.4.1.0, gianism.4.2.0, gianism.4.2.2, gianism.4.3.0, gianism.4.3.1, gianism.4.3.2, gianism.4.3.3, gianism.4.3.4, gianism.4.4.0, gianism.5.0.0, gianism.5.0.2, gianism.5.1.0
Hook Type: filter
Displaying hooks found in version: gianism.5.1.0apply_filters('gianism_register_name') is found 4 times:
- /app/Gianism/Service/Facebook.php line 294
* @param string $user_login * @param string $service * @param mixed $data User data or something. It varies by service. */ $user_name = apply_filters( 'gianism_register_name', 'fb-' . $user['id'], $this->service, $user ); // Check if username exists $user_id = wp_create_user( $user_name, wp_generate_password(), $email ); if ( is_wp_error( $user_id ) ) { throw new \Exception( $this->registration_error_string() ); } // Ok, let's update user meta
- /app/Gianism/Service/Google.php line 152
$user_name = $this->valid_username_from_mail( $email ); /** * @see Facebook */ $user_name = apply_filters( 'gianism_register_name', $user_name, $this->service, $profile ); // Create user $user_id = wp_create_user( $user_name, wp_generate_password(), $email ); if ( is_wp_error( $user_id ) ) { throw new \Exception( $this->registration_error_string() ); } // Update user meta
- /app/Gianism/Service/Line.php line 218
$user_name = 'line-' . $line_id; /** * @see Facebook */ $user_name = apply_filters( 'gianism_register_name', $user_name, $this->service, $response ); $user_id = wp_create_user( $user_name, wp_generate_password(), $email ); if ( is_wp_error( $user_id ) ) { throw new \Exception( $this->registration_error_string() ); } // Update user meta update_user_meta( $user_id, $this->umeta_id, $line_id );
- /app/Gianism/Service/Twitter.php line 197
$user_name = ( ! username_exists( '@' . $screen_name ) ) ? '@' . $screen_name : $email; /** * @see Facebook */ $user_name = apply_filters( 'gianism_register_name', $user_name, $this->service, $access_token ); // Create user $user_id = wp_create_user( $user_name, wp_generate_password(), $email ); if ( is_wp_error( $user_id ) ) { throw new \Exception( $this->registration_error_string() ); } // Update extra information