Any way that guest users see the site as registered users?

Question

My theme does a redirect when author profiles are given like this in author.php:

if ( ! is_user_logged_in() ) {
    wp_safe_redirect( home_url() );
    exit;
}

Is there any way for wordpress to detect guest users as registered users without having to be registered to avoid this redirection? I can’t use childtheme. Is there any snippet, htaccess or something?

0
DrWho 2 months 0 Answers 6 views 0

Leave an answer