AI Assistant
Notifications
Clear all

[Closed] login to forum instead of wp platform

2 Posts
2 Users
0 Reactions
1,499 Views
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@zia-zhao)
Active Member
Joined: 7 years ago
[#9394]

I've been searching for information about how to lead users directly to my forum after login. (because mine goes to wordpress dashboard). I found avoid using wp-login.php should fix the problem. However, I don't know how to get rid of  wp-login.php? Is there step by step tutorial? or explanations?


Topic Tags
1 Reply
Posts: 1594
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@anonymous20)
Noble Member
Joined: 10 years ago

You can actually redirect users from WP Login->Dashboard to Home page. Maybe to the forum URL (i haven't tried that).

Put this to your theme's function.php

/* redirect users to front page after login Start */

function redirect_to_front_page() {

global $redirect_to;

if (!isset($_GET['redirect_to'])) {

$redirect_to = get_option('siteurl');

}

}

add_action('login_form', 'redirect_to_front_page');

/* redirect users to front page after login end */

Share: