Browse Source

fix: fixed behaviour for logged in users

pull/328/head
arzola 4 years ago
parent
commit
b3ae927f5c
  1. 2
      inc/actions/namespace.php

2
inc/actions/namespace.php

@ -353,7 +353,7 @@ function remove_widgets() {
*/
function override_signup_page() {
global $pagenow;
if( getenv('PB_CUSTOM_SIGNUP') && $pagenow === 'wp-signup.php' ) {
if( getenv('PB_CUSTOM_SIGNUP') && ! is_user_logged_in() && $pagenow === 'wp-signup.php' ) {
wp_redirect( network_home_url('/register'));
exit();
}

Loading…
Cancel
Save