um_validation_safe_username_regex

Hook type

Filter

Description

Change validation regex for username

Parameters

$regex_safe

(string) Regex

Usage

<?php add_filter( 'um_validation_safe_username_regex', 'function_name', 10, 1 ); ?>

Examples

<?php
add_filter( 'um_validation_safe_username_regex', 'my_validation_safe_username', 10, 1 );
function my_validation_safe_username( $regex_safe ) {
    // your code here
return $regex_safe;
}
?>

Change Log

Since: 2.0

Source

um_validation_safe_username_regex is located in includes/core/class-validation.php::line 116