/** * Checks if a user is logged in, if not redirect them to the login page. */function appthemes_auth_redirect_login() { if ( !is_user_logged_in() ) { nocache_headers(); wp_redirect( wp_login_url( scbUtil::get_current_url() ) ); exit(); }}
/**
* Checks if a user is logged in, if not redirect them to the login page.
*/
function appthemes_auth_redirect_login() {
if ( !is_user_logged_in() ) {
nocache_headers();
wp_redirect( wp_login_url( scbUtil::get_current_url() ) );
exit();
}
}