By adding this to your theme functions.php file:
function login_redirect( $redirect_to, $request, $user ){
return home_url("https://wordpress.stackexchange.com/");
}
add_filter( 'login_redirect', 'login_redirect', 10, 3 );
Related Posts:
- wp_redirect on base wp-admin and login
- Redirect returning users to a certain page?
- Detect if requested page is PWA on server side
- redirect_to how to make it simply work with get parameter or similar?
- Can someone explain what wp_session_tokens are, and what are they used for?
- template_include (overriding default plugin templates via current theme)
- Init action hook running late after PayPal’s return url?
- How to check WordPress website username and password is correct
- Log in from one wordpress website to another wordpress website
- Using a Theme inside a Plugin directory
- Problems after wp_set_password() containing an apostrophe
- Front-End Form Submission in Shortcode
- Two-step login process – Is it possible?
- How do I approach removing menu items on the fly based on settings in my plugin?
- Cannot modify header information – headers already sent by pluggable.php
- Is there any way to check for user login and send him to login?
- Change template dynamically
- Proper way to pass credentials in a custom login form to avoid “headers already sent”
- External Authentication, session_tokens not destroyed on logout
- Verify if user is wordpress logged in from another app since wordpress 4.0
- How to customize login process
- wp_insert_user() function password never match
- Does wp_login only trigger before an user signs in into the admin panel?
- Logout users upon login, based on caps/role?
- Is it possible to make sure that only my plugins output is shown to the enduser?
- Password field is empty when using wp_signon();
- Plugin Development for registered users
- Translation per IP location [closed]
- Force HTTPS 301 redirect with hook
- Enqueue script globally
- WP Multisite login not working on one subsite. Possibly cookies/ history issue?
- Redirect in WordPress plugin
- How do I validate extra pin field on my WordPress login form page?
- Add code to template dynamically
- How to share user data across multiple WordPress websites?
- send popup after wp_redirect()
- Trying to re-direct users to specific page based on an ACF variable
- Allowing duplicating users with same user_login and user_email
- Information and Page from WordPress Plugin
- How to Login a User inside a Plugin and Redirect to page?
- Using custom IDP with WP
- Hiding the WordPress login and password fields from login page
- get_queried_object_id combined with wp_redirect gets wrong id
- redirect_to not Including Hashtag from URL
- Multiple Users Logged In Causing Incorrect Account Returned
- Multi-part form and wp_redirect()
- Get user logged in status from within a plugin. $current_user not defined
- Need edit profile link in the menu for logged in users
- Create a Custom Login System in WordPress [closed]
- how can I insert a link on login page
- user can login from single account detail from multiple locations(computer) at the same time [closed]
- how to works woocommerce cart hash
- Custom Path for a Plugin
- WP 3-way voting system: On to something! Please help!
- Why is the expected file not being deleted?
- How can the_excerpt (or equivalent) be called on a category description?
- List categories with descriptions via plugin
- How to determine which capability to use?
- Plugin Creation: Overriding upload_max_size and post_max_size
- Will a plugin able to know is_user_logged_in?
- Plugin could not be activated because it triggered a fatal error?
- How to exclude “uncategorized” from custom categories widget?
- Problems with wierd characters and my plugin
- Get cat parameter from admin-ajax
- how to add custom fields into new & update post page?
- Widget instance options not showing correctly
- Questions about meta box: nonce and parameters available
- Remove Products From Category
- Update product prices from remote file
- How to add some basic inline CSS using existing plugin or theme?
- Serial Number from custom table not appear in woocommerce_email_before_order_table action
- Font size of HTML content
- WordPress: redirecting to the form page after form submission to admin-post.php
- Foreign wp_users ID in custom plugin DB table?
- Displaying custom content from a plugin within the active theme
- How to write a shopping queue line plugin with a queue button?
- Why does website stretch and white space on load? [duplicate]
- Custom Settings Plugin Save foreach checkboxes
- Auto hyper link text matching slugs/pages
- Modify custom block plugin without losing content
- Metabox is not displaying
- check_admin_referer()
- Downloading File via headers doesnt work
- get the permalink error
- Creating an ics calendar from custom post type
- Catch metabox values in Plugin
- wp.media Uncaught TypeError: Cannot read properties of undefined (reading ‘state’)
- Cannot output plugin twice with shortcode
- Exclude Woocommerce Product Category From Sitemap
- How to make an admin plugin menu page go full screen?
- want to show CMB2 metabox on woocommerce product data tab
- wp_schedule_single_event is set correctly but sometimes not fired
- Dynamic page generation upon purchase of a product
- Customise Grouped Product display in Woocommerce with custom column
- WordPress (pagenow link) in ajaxurl change after i change plugin language
- Why is $_POST empty when saving custom Meta Box?
- Creating posts with links from a txt file
- WordPress video js error this.mediaElement.play is not a function
- It is possible to pass $args that sent by add_settings_field() inside another function?
- How to Get Last ID?