gianism_register_name

gianism_register_name

Hook Type: filter

See hook in core

Displaying hooks found in version: gianism.5.1.0

apply_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