I would not recommend doing that.
This would be a hack.
There is no option inside WordPress to do so yet. That would be perfect.
I know there is a filter
https://codex.wordpress.org/Plugin_API/Filter_Reference/login_url
but if this works for you let me know.
And there are plugins that use the redirect hook like here.
You can check the code.
They need to do several things so not super easy.
Related Posts:
- Notify comment author upon reply
- WordPress get_avatar function not correct working
- Make change in media library affect images in published articles
- Should I not update the plugin?
- Improving the perfomance of a plugin action
- How to add Wrapper Div/container element around WordPress Widget Content
- Can I use Symfony components in a plugin that I want to submit to the WordPress plugin repository?
- UpdraftPlus installed malware – scared to download or update plugins now! [closed]
- Duplicate New User Registration notices (BuddyPress and bbPress both installed)
- How to show the number of website visitors in my theme
- Is there any plugin which enables users to rate comments in thumbs up-down way?
- Plugin Repostitory Questions
- Free paypal cart solution [closed]
- Get site url and updates data, then use them
- How to integrate together a website currently hosted WordPress.com and a custom web application currently hosted on Azure?
- Problem with add_action
- How to update a local development plugin on a separate machine
- Error When Trying To Login [closed]
- unable to remove malware from wp website [closed]
- How do I convert my WordPress website to be domain agnostic?
- Get Image Having the ID [closed]
- Show media-uploads to all users
- How to create plugin auto create page wordpress?
- Scrape a webpage for image and add it to post
- Block wordpress style for my plugin admin page
- I want to reset user’s post meta after successfully login
- how can authors to define custom pages?
- Widget Screen Locked
- Send a Notification to a WordPress Theme
- Gathering all Custom Post Type posts in to array/object the proper way
- How to prevent plugin, theme installation failures on WordPress?
- How to make a slider hearder?
- Warning: Attempt to read property “ID” on null in C:\xampp\htdocs\Nnamdi1\wp-content\plugins\elementor\core\base\document.php on line 250 [closed]
- Adding CASE in WP_Query
- why I cannot activate elementor plug in?
- How to find the following specific WordPress variables?
- Need help creating asynchronous data scraper in WordPress
- Load extra post content from plugin, after load basic post content
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- Trying to get property ‘ID’ of non-object in /wp-includes/class-wp-query.php on line 4044
- How to upload large media file in chunks, without any plugin?
- Redirect unloggedin users
- WP Function does not trigger on Webhook API Call
- WordPress asks to update a plugin already updated
- Why do I need to reload the page for WordPress to see the new custom field added with jQuery
- How to store a secret for a plugin inside public_html
- Do images in plugins automatically load?
- How to use functions found inside pluggable.php with my plugin files
- Apply only the css in my style.css file
- WordPress:Custom banner from psd trying to cut out a button area so the website link can be clicable not working
- Global $wp_admin_bar always returns null
- Edit plugin’s HTML output with Hooks
- How to echo a PHP Code After the Content
- Shortcode generated widget to appear on same line as heading text and button
- WooCommerce or any other plugin: Deliver JS and CSS through CDN without using a Plugin
- How to roll back WordPress version or prevent migration from forcing update?
- How to find out programmatically whether any cache plugin is installed in the WordPress website?
- Show custom taxonomy in theme
- errno: 150 “Foreign key constraint is incorrectly formed” [closed]
- Implementation to count page visits of unique visitors based on a cookie
- How to prevent encoding plugin HTML output to entities?
- How to differently style pages that display posts of different category in WordPress?
- WordPress FTP/media directory permissions problem?
- Include post_date in search
- Coming soon pages with rest of site in maintenance mode
- insert multiple entries in database using a loop issue
- WordPress, modular content, and syndication
- How to markup wordpress site using Schema.org?
- Plugin loaded, but not running
- Merge custom plugins in one folder
- Execute certain function on GET request
- White screen and can’t activate themes and plugins
- date function not correctly returning date
- Password Protected Directory Link Shows Maintenance Mode Page
- How do I increase the 255 character limit on the ‘description’ field for link library links?
- Dynamic price product
- Convert usernames listed by the Groups plugin shortcode to displayed names?
- Undefined variable _POST
- Display Facebook photo albums and photo comments?
- custom registration form [duplicate]
- I want to remove the register/login WordPress top bar from my website
- (Plugin) Icon needed beside the post title [closed]
- To generate Flickr Gallery in my wordpress site which plugin to use [closed]
- How to create load more button without a plugin?
- Detect if you’re in the “Frontend Editor” mode in Visual Composer WordPress [closed]
- Place a widget side by side rather than on top of each other
- How to create a nameplate extension? [closed]
- WP asking for ftp credentials when deleting plugin
- How can I view the responses of contact forms on different sites in one panel or elsewhere? [duplicate]
- Page with redirect
- How to add a simple design in classic editor plugin creating post page through another Wp plugin
- How to fix Fatal error: Cannot redeclare get_cli_args() in class-wp-importer.php
- Is there any performance difference between duplicating composer packages among multiple plugins and not doing it? How can I avoid it?
- Why is my Gutenberg block not saving and rendering the chessboard?
- Is it possible to use Classes between WordPress plugins with separate namespaces?
- Function to consider a plugin activated for selected users only
- unlimited chat rooms/channels/groups
- refresh media library item
- Similar hook to ‘init’ for when plugin page loads
- Elementor wp_register_script showing file when i not use ‘wp_enqueue_script’