Permalink
Browse files

Pass vars through filter

  • Loading branch information...
1 parent 1b3982d commit 1ae6ad8fc2d6ad7ff2b7d21d8c14aa83176ba6e4 @joehoyle joehoyle committed Apr 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 hm-accounts/hm-accounts.classes.php
@@ -66,6 +66,7 @@ public function register() {
// Merge arrays overwritting defaults, remove any non-standard keys keys with empty values.
$user_vars = array_filter( array( 'user_login' => $args['user_login'], 'user_pass' => $args['user_pass'], 'user_email' => $args['user_email'], 'display_name' => $args['display_name'] ) );
+ $user_vars = apply_filters( 'hma_register_user_data', $user_vars, $this );
$user_id = wp_insert_user( $user_vars );
if ( ! $user_id || is_wp_error( $user_id ) )

0 comments on commit 1ae6ad8

Please sign in to comment.