$randomuser = array("user","user1","user2","user3","user4","user5");
shuffle($randomuser);
/** MySQL database username */
define('DB_USER', $randomuser);
How do i make the above code to work in wp-config.php ? Thanks.
$randomuser = array("user","user1","user2","user3","user4","user5");
shuffle($randomuser);
/** MySQL database username */
define('DB_USER', $randomuser);
How do i make the above code to work in wp-config.php ? Thanks.
You can set how many random users you want to get in 2nd argument too:
$random_users = array_rand($random_user,5); //gets 5 random users from array