SHARE
TWEET

Untitled

verygoodplugins May 25th, 2020 1,271 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function randomize_nickname( $user_meta, $user_id ) {
  2.  
  3.     $user_meta['nickname'] = $user_meta['first_name'] . rand( 40, 400 );
  4.  
  5.     return $user_meta;
  6.  
  7. }
  8.  
  9. add_filter( 'wpf_pulled_user_meta', 'randomize_nickname', 10, 2 );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top