Created
December 4, 2021 15:28
-
-
Save aimahdi/2e23e7c1c3d15cb1fa77d35a6083862e 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