jetpack_sso_allowed_username_generate_retries

jetpack_sso_allowed_username_generate_retries

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('jetpack_sso_allowed_username_generate_retries') is found 1 times:

  • /vendor/automattic/jetpack-connection/src/class-utils.php line 103
    		 * @since jetpack-4.3.2
    		 *
    		 * @param int 5 By default, SSO will attempt to random generate a user up to 5 times.
    		 */
    		$num_tries = (int) apply_filters( 'jetpack_sso_allowed_username_generate_retries', 5 );
    
    		$exists = username_exists( $username );
    		$tries  = 0;
    		while ( $exists && $tries++ < $num_tries ) {
    			$username = $user_data->login . '_' . $user_data->ID . '_' . wp_rand();
    			$exists   = username_exists( $username );