um_validate_username_exists

Hook type

Filter

Description

Change username exists validation

Parameters

$exists

(bool) Exists?

$username

(string) Username

Usage

<?php add_filter( 'um_validate_username_exists', 'function_name', 10, 2 ); ?>

Examples

<?php
add_filter( 'um_validate_username_exists', 'my_validate_username_exists', 10, 2 );
function my_account_pre_updating_profile( $exists, $username ) {
    // your code here
return $exists;
}
?>

Change Log

Since: 2.0

Source

um_validate_username_exists is located in includes/core/um-actions-ajax.php::line 38