Created
December 27, 2022 08:13
-
-
Save wp126/5f9bc4901f9444544b56f620d41513a2 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
add_action('wp', 'mysialus'); | |
function mysialus(){ | |
if(!is_admin()){ | |
if(!is_user_logged_in()){ | |
if(!is_page(1587)){ | |
wp_redirect( get_permalink(1587)); | |
exit; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment