b3_reserved_usernames()

Description

With this filter you can add/change the reserved user names.

Return

An array of reserved usernames.

Usage

  1. function b3_reserved_usernames_example() {
  2.  
  3.     $reserved_user_names = [
  4.         'username1',
  5.         'username2',
  6.     ];
  7.  
  8.     return $reserved_user_names;
  9.  
  10. }
  11. add_filter( 'b3_reserved_usernames', 'b3_reserved_usernames_example' );

Used in

Tags