Note: All code examples on this site are provided for developer reference/guidance only and we cannot guarantee that they will always work as expected. Our support policy does not include assistance with modifying or debugging code from any code examples, and they may be changed or removed if we find they no longer work due to changes in our plugins.
When clicking ‘login’ links in both Job and Resume Manager, they will default to the WordPress login page (because that is the only login page these plugins know about!). If you want to send the user to a custom login page instead, you can use a small snippet in your theme functions.php file.
Catch All
This snippet will redirect all login links to the specified page (just replace /login-page/ on line 3 with the slug of your custom login page):
add_filter( 'login_url', 'my_login_page', 10, 2 );
function my_login_page( $login_url, $redirect ) {
return home_url( '/login-page/?redirect_to=' . $redirect );
}
If you want different pages to redirect to different login pages, then you can use the snippets below instead:
Job Manager
Submit Job Page
/** Code goes in theme functions.php **/
add_filter( 'submit_job_form_login_url', 'custom_submit_job_form_login_url' );
function custom_submit_job_form_login_url() {
return 'http://yourgroovydomain.com';
}
Job Dashboard
/** Code goes in theme functions.php **/
add_filter( 'job_manager_job_dashboard_login_url', 'custom_job_manager_job_dashboard_login_url' );
function custom_job_manager_job_dashboard_login_url() {
return 'http://yourgroovydomain.com';
}
Resume Manager
Submit Resume Page
/** Code goes in theme functions.php **/
add_filter( 'submit_resume_form_login_url', 'custom_submit_resume_form_login_url' );
function custom_submit_resume_form_login_url() {
return 'http://yourgroovydomain.com';
}
Candidate Dashboard
/** Code goes in theme functions.php **/
add_filter( 'resume_manager_candidate_dashboard_login_url', 'custom_resume_manager_candidate_dashboard_login_url' );
function custom_resume_manager_candidate_dashboard_login_url() {
return 'http://yourgroovydomain.com';
}
Job Manager Alerts
/** Code goes in theme functions.php **/
add_filter( 'job_manager_alerts_login_url', 'custom_job_manager_alerts_login_url' );
function custom_job_manager_alerts_login_url() {
return 'http://yourgroovydomain.com';
}
Job Manager Bookmarks
/** Code goes in theme functions.php **/
add_filter( 'job_manager_bookmark_form_login_url', 'custom_job_manager_bookmark_form_login_url' );
function custom_job_manager_bookmark_form_login_url() {
return 'http://yourgroovydomain.com';
}