Hi @dgtalgoodies
This requires customization on your end. You can try adding the following code snippet to your theme/child-theme’s functions.php file or use the Code Snippet plugin to run the code:
function um_021422_errors_hook__blockedwords( $args ) {
$words = UM()->options()->get( 'blocked_words' );
if ( empty( $words ) ) {
return;
}
$words = strtolower( $words );
$words = array_map( 'rtrim', explode( "\n", $words ) );
$key = "nickname";
if ( ! UM()->form()->has_error( $key ) && isset( $args[ $key ] ) && in_array( strtolower( $args[ $key ] ), $words ) ) {
UM()->form()->add_error( $key, __( 'You are not allowed to use this word as your nickname.', 'ultimate-member' ) );
}
}
add_action( 'um_submit_form_errors_hook__blockedwords', 'um_021422_errors_hook__blockedwords', 9999 );
add_action( 'um_submit_form_errors_hook__profile', 'um_021422_errors_hook__blockedwords', 9999 );
Regards,