I a plugin called “WP JOB MANAGER” installed
I need to implement a custom login page. I was told to insert a snippet into my theme functions.php file.
Where do I insert this snippet in Newspaper functions.php?
See forum discussion below:
Changing Login Redirects
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.
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 );
}
view rawfunctions.php hosted with ❤ by GitHub
If you want different pages to redirect to different login pages, then you can use the snippets below instead:
↑ Back to Top 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://someurl.com’;
}
view rawgistfile1.txt hosted with ❤ by GitHub
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://someurl.com’;
}
view rawgistfile1.txt hosted with ❤ by GitHub
↑ Back to Top 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://someurl.com’;
}
view rawgistfile1.php hosted with ❤ by GitHub
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://someurl.com’;
}
view rawgistfile1.txt hosted with ❤ by GitHub
↑ Back to Top 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://someurl.com’;
}
view rawgistfile1.txt hosted with ❤ by GitHub
↑ Back to Top 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://someurl.com’;
}
-
This topic was modified 9 years by
pstgibson.
Hello pstgibson,
Unfortunately, our theme does not have any such an option that allows you to create a Redirect Register Link, sorry! You should use some online tricks to do this or also, you should check the following guides in order to achieve a Redirect Link, like this -> http://www.wpbeginner.com/beginners-guide/beginners-guide-to-creating-redirects-in-wordpress/ -> https://mediatemple.net/community/products/grid/204643080/how-do-i-redirect-my-site-using-a-htaccess-file -> http://www.inmotionhosting.com/support/website/redirects/setting-up-a-301-permanent-redirect-via-htaccess. Also, notice that type of plugin was not tested with our theme and also, we have no idea about the theme behaviour with this plugin, sorry! We cannot say for sure if it will work or not with the theme, sorry! If you want to implement this plugin in our theme, first of all, you should check the plugin’s documentation and then, you should try to implement it yourself because we cannot provide custom services at the moment, sorry!
Thanks for your understanding!