I’d check that the login_redirect filter isn’t being used in your functions.php file. If a search for the ‘/foo/bar’ path in your theme doesn’t return any results, a plugin like Peter’s Login Redirect could be being used and would likely store the path in the database.
Related Posts:
- How to change the wp-login.php page title?
- Change the footer text on the login page
- How to turn off redirection from ‘domain.com/login’ to ‘domain.com/wp-login.php’
- PHP If user is logged in & on home page redirect
- How to redirect users based on role and content of redirect_to?
- Infinite loop when logging out using custom login form
- Need help with AJAX login to call php in functions.php to handle redirects based on user cap (role)
- Redirecting the lost password page request when using a custon login page
- wp-login.php?redirect_to=https problem
- Redirect users not logged in to the standard login page (and back) from some posts and pages
- How to change wp-admin and wp-login urls
- wp_login_url always redirects me to wp-admin
- wp-login – unable to redirect user to a custom login url
- Redirect to current URL and append specified URL parameter on unsuccessful login through Elementor login form widget
- Login/logout in header
- Why is my cookie not unsetting upon logout? [closed]
- User management system similar to wordpress one?
- How can I remove a function that has been added to wordpress with add_filter?
- How to control WordPress image metadata (using Imagick)?
- Edit incorrect password message WordPress
- How do I add custom bulk actions to multiple custom post types?
- Add data attribute to each li in menu
- Show prices with tax in Woocommerce Mini Cart [closed]
- Ajax category filtering products default show all
- Add a specific part of current category page url to shortcode
- Why does my callback function not work with this custom filter hook?
- Programmatic Login from 3rd Party site
- Contact Fom 7 – how to add custom HTML inside span.wpcf7-form-control-wrap AND IMMEDIATELY AFTER input.wpcf7-form-control?
- Removing “wpautop” (auto tags) only on certain pages?
- Cannot access wp-admin/wp-login.php (WordPress backend) anymore, what could be wrong?
- WordPress homepage infinite redirect
- Add filter when image is uploaded?
- How to debug my custom login form looping intermittently
- Remove the first 5 characters of the_title and orderby that
- Remove a div from RSS feed
- Print last modified date only on posts
- How to add an arrow to menu items has submenus
- Redirect undesirable domain
- WordPress Gravatar filter is removing my custom attributes
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- getting logged in user info (wp-load.php) from parent directory
- Unique icons next to each WordPress menu item
- How do I display the main domain for my WordPress install?
- Change tinyMCE editor to allow marked content when pasting from Word
- Login to wordpress by clicking a link and specifying usernaname and password in url
- Log in / Log Out Custom Button
- Alter required message using comment form api
- How to debug this search & replace strings snippet?
- Hide Featured Image Meta Box on Editor Screen
- Add item to top of menu using a filter in functions.php
- Set Cache-Control header for 301 redirects
- Should `wp_login` be used since it’s deprecated?
- Moving code from theme header to functions.php
- Change CSS based on is_user_logged_in
- How to display login form anywhere, when user isn’t logged in, without redirecting?
- Add filter multiple times using only one master function
- How to edit php code in WordPress Post file?
- How can I open up my administrative panel to everyone?
- Change page title from page using php via php executed from page/post itself
- Showing latest post without 301 redirect
- How to make modifications only to certain elements of an HTML string on the server-side?
- Having Issue on Redirecting With Session in WordPress
- Override a function defined in wp-includes/comment-template.php
- Filtering a function’ output for a new continued function
- Using a $GET parameter from a URL, to redirect to a URL (WordPress)
- Deleting Certain terms from appearing on the front end as links
- Content filter won’t work
- WordPress redirect redirecting too many times or not at all
- Warning: in_array() null given in PHP function
- Upload multiple files in randomly generated folder using wp_upload_bits
- Create page template via functions.php?
- Add meta tags to a custom header
- Ajax filter button display all posts
- Using Argument from Function to Re-Direct Visitor (WordPress)
- I am receiving a pluggable.php warning sign on my only http:// page
- How to append to an array and return the results in a filter?
- How can I add a new row in a separate database when someone registers via WordPress?
- Login redirect. Check user meta and redirect accordingly
- Where to insert redirect code based on http_referer?
- How to have different site identity logos on each page on Astra Theme [closed]
- Is this a correct usage of ob_start() in my WordPress project?
- How to allow download url redirection only if user logged in WordPress site?
- One account with multiple logins
- How do I create a secondary version of the_content
- Lost in trying to create user database system
- Get the_content surrounded by instead of
- Custom query vars filters problem with pagination
- Filter by field with array value in ACF on WP REST API
- wrap a span tag around author’s post count
- Get the name of menu item with wp_nav_menu
- Shortcode to log user into current URL
- Displaying content on posts page based on category
- PHP Redirect condition
- update_post_meta() not saving data inside of save-post filter
- How to add aria role and schema markup to custom walker container
- PHP getting error when trying to access WP-Admin Dashboard
- Can I remove or edit an include() from a function with a filter?
- I installed WordPress locally now how do I login?
- Dynamically adding filters
- If user is logged in not working