Created
March 29, 2018 09:06
-
-
Save manchumahara/57733debddacb3fb62ab1bb246b80bad 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
$login_url = wp_login_url(); | |
if(is_singular()){ | |
$login_url = wp_login_url( get_permalink() );; | |
} | |
else{ | |
global $wp; | |
//$login_url = wp_login_url( home_url( $wp->request ) );; | |
$login_url = wp_login_url( home_url( add_query_arg(array(),$wp->request) ) );; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment