diff --git a/core/um-actions-access.php b/core/um-actions-access.php index 70c61b44..3f62b032 100644 --- a/core/um-actions-access.php +++ b/core/um-actions-access.php @@ -55,6 +55,7 @@ } + } /*** @@ -137,7 +138,7 @@ add_action('um_access_post_settings','um_access_post_settings'); function um_access_post_settings() { global $post, $ultimatemember; - + // woo commerce shop ID if( function_exists('is_shop') && is_shop() ) { @@ -233,6 +234,13 @@ } + if( um_is_core_page('user') && ! is_user_logged_in() ){ + $ultimatemember->access->allow_access = false; + $ultimatemember->access->redirect_handler = esc_url( $access_redirect ); + wp_redirect( $ultimatemember->access->redirect_handler ); + exit; + } + if ( $redirect_to ) { if ( ! is_feed() ) { $ultimatemember->access->allow_access = false;