Skip to content

Instantly share code, notes, and snippets.

@sareiodata
Last active December 15, 2015 09:19
Show Gist options
  • Save sareiodata/5237607 to your computer and use it in GitHub Desktop.
Save sareiodata/5237607 to your computer and use it in GitHub Desktop.
Filter Profile Builder username and add extra text after it for information purposes.
// filter Profile Builder username and add extra text after it for information purposes.
add_filter('wppb_register', 'pb_edit_registration_username', 10, 1);
function pb_edit_registration_username($registerFilterArray2){
$registerFilterArray2['name2'] .= 'text here';
return $registerFilterArray2; //returns the default (formatted) input + your custom text
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment