username_exists

Advertisement

Summery Summery

Filters whether the given username exists or not.

Syntax Syntax

apply_filters( 'username_exists', int|false $user_id, string $username )

Parameters Parameters

$user_id

(int|false) The user's ID on success, and false on failure.

$username

(string) Username to check.

Source Source

File: wp-includes/user.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.9.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.