Created
June 3, 2019 18:11
-
-
Save cfaria/fa3dde19a90a706f06ed587b32fe8366 to your computer and use it in GitHub Desktop.
Kinsta cache issue
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
if(!is_admin()) add_action('template_redirect', 'supermundano_template_redirects'); | |
function supermundano_template_redirects(){ | |
if( is_page( 'documents' )) | |
{ | |
if(!is_user_logged_in()){ | |
wp_redirect( wp_login_url( get_permalink() ), 301); | |
die(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment