We will keep you posted.
Feb 24, 2025 in Uncategorized by admin
Purpose : to check if the user is log in in page
Steps: Put the code at the top of the page to check if user log in.
if (!is_user_logged_in()) { wp_redirect(esc_url(site_url(‘/’))); exit; }