Created
April 29, 2015 12:07
-
-
Save danfisher85/fd4d2ebcc0eafd90aac3 to your computer and use it in GitHub Desktop.
WP Login Redirects for Comments Section (PetSitter)
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
/** For Comments (Blog & Resumes) **/ | |
add_filter('login_url','petsitter__custom_login_url'); | |
if(!function_exists('petsitter__custom_login_url')) { | |
function petsitter__custom_login_url($login_url) { | |
global $petsitter_data; | |
if(isset($petsitter_data['petsitter__job-manager-login-page'])) { | |
return get_permalink($petsitter_data['petsitter__job-manager-login-page']); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment