// Redirect to login page in wordpress
add_action( 'init', 'ej_wp_user_logged_in' );
function ej_wp_user_logged_in() {
if (!is_user_logged_in()) {
wp_redirect( wp_login_url() ); exit;
}
}
// Redirect to login page in wordpress
add_action( 'init', 'ej_wp_user_logged_in' );
function ej_wp_user_logged_in() {
if (!is_user_logged_in()) {
wp_redirect( wp_login_url() ); exit;
}
}
Previous Article
Next Article
Unlock full access to Zento and see the entire library of paid-members only posts.
Subscribe to our Newsletter, cancel at anytime.