Skip to content

Commit

Permalink
register redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
viruthagiri committed Mar 7, 2017
1 parent 60ed1ad commit 603b595
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions includes/class-users-wp-activator.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,18 @@ public static function uwp_create_tables()
sort_order int(11) NOT NULL,
is_default enum( '0', '1' ) NOT NULL DEFAULT '0',
is_dummy enum( '0', '1' ) NOT NULL DEFAULT '0',
expand_custom_value int(11) NULL DEFAULT NULL,
searching_range_mode int(11) NULL DEFAULT NULL,
expand_search int(11) NULL DEFAULT NULL,
front_search_title varchar(255) CHARACTER SET utf8 NULL DEFAULT NULL,
first_search_value int(11) NULL DEFAULT NULL,
first_search_text varchar(255) CHARACTER SET utf8 NULL DEFAULT NULL,
last_search_text varchar(255) CHARACTER SET utf8 NULL DEFAULT NULL,
search_min_value int(11) NULL DEFAULT NULL,
search_max_value int(11) NULL DEFAULT NULL,
search_diff_value int(11) NULL DEFAULT NULL,
search_condition varchar(100) NULL DEFAULT NULL,
field_data_type varchar(255) NULL DEFAULT NULL,
PRIMARY KEY (id)
) $collate AUTO_INCREMENT=1 ;";

Expand Down
3 changes: 2 additions & 1 deletion includes/class-users-wp-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ public function process_register($data = array(), $files = array()) {
$errors->add('invalid_userorpass', __('<strong>Error</strong>: Invalid username or Password.', 'userswp'));
return $errors;
} else {
wp_redirect(home_url('/'));
$regsiter_redirect = apply_filters('uwp_register_redirect_url', home_url('/'));
wp_redirect($regsiter_redirect);
exit();
}
} else {
Expand Down
Binary file added public/assets/images/arrow18x11.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/down-arrow18x11.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 603b595

Please sign in to comment.