Created
December 4, 2021 15:31
-
-
Save aimahdi/6784fe8b1380dc0c0b55e559d45cc151 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add_login_check() | |
{ | |
if (is_user_logged_in()) { | |
if (is_page(200)){ | |
wp_redirect('https://dev-mahdii.pantheonsite.io/'); | |
exit; | |
} | |
} | |
} | |
add_action('wp', 'add_login_check'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment