You can redirect requests to wp-login.php to your page:
add_action(
'login_head',
function() {
$parsed = parse_url($_SERVER['REQUEST_URI']);
$redirect = site_url('mypage');
if (!empty($parsed['query'])) {
$redirect .= '?'.$parsed['query'];
}
wp_safe_redirect($redirect,301);
exit;
}
);
However, wp-login.php appears ~34 times in Core on my 3.6.1 install ( grep -Rn "wp-login.php" * | wc -l ), and many of those do not appear to be filterable. Actually altering all of those links would take some work and may well involve core hacks.
The login_url filter, and the logout_url one, will get you part way, but it do not cover all cases.
add_action(
'login_url',
function($url) {
return str_replace('wp-login.php','mypage',$url);
}
);
Very rough code. Barely tested. Possibly buggy. Caveat emptor. No refunds.
Related Posts:
- The the_post_thumbnail without srcset?
- after_setup_theme always runs
- Using classes instead of global functions in functions.php
- WordPress API Menu/Submenu Order
- What WP folder can I use to write files to?
- Why I can’t add a CSS style in this WordPress theme?
- Allow Shortcode in Theme Customizer
- Where to post/upload the new theme for WordPress theme repository
- Setting multiple default background images?
- How to make a theme with more than one CSS file?
- register_sidebar ignores ‘id’ and ‘class’
- Display a different theme for not logged-in users
- Best practice (forward compatibility) for theme options
- Add colors to existing color palette without replacing it
- Single Page WordPress Theme – Using page templates
- Can I upload WordPress-react theme in Wp theme repository
- Returning Variables back into a template
- new theme permissions don’t allow me to edit
- Which theme foundry has clean coded themes, where code is poetry [closed]
- What page should I use for a contact form?
- Retrieve data using wpdb to use for customizer controls
- How can a Theme Contain no Header File or Footer File?
- Get list of months with posts
- Version control for both Vagrant config and themes being developed [closed]
- Some translations do not work in my template class
- Does any theme support child theme?
- WordPress not registering Theme Customization Section
- How do I save a wordpress theme’s files and install them on another site?
- How to remove a file included in parent theme with locate_template() via child theme?
- qTranslate with my own theme and settings
- Stylesheet not linking
- How to control layout of posts on page?
- Override template file i subfolders
- Theme Development for WordPress Multisite Installation
- Include Parent functions.php in Child Theme functions.php
- create category on theme setup
- Change locale by detecting viewer’s browser language setting and let them choose prefered language after
- Why is it needed to enqueue parent stylesheet in child theme?
- Is there any WordPress theme for Self Storagae just like Spacer [closed]
- Customizer: save setting/control content to post/page
- WordPress get_template_part() function not working
- Where am I doing wrong in my theme menu?
- How can my theme allow users to take advantage of advanced html tags in posts
- Customize how a WordPress theme looks like in the Theme Selector
- How to set a page as homepage in stead of the newspages?
- Widget Option is Missing
- WordPress Theme Validator?
- If you were to start using a WordPress framework today, which one would you use? [closed]
- Template for landing pages
- Is it possible to have a theme that uses only one single page?
- underscores use of the article element on the page template
- Plugin does not work in custom theme
- Create a child theme from multiple themes
- html5-reset theme does not show the image [closed]
- Adding a gallery to my first theme
- Are seven additional image sizes are too many?
- How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?
- What exactly is “wordpress theming”? [closed]
- I have WordPress setup on primary domain, how do I set it up on its subdomain using the same database?
- Valid SQL query not returning results
- How do I include a partial from a directory below a wordpress theme directory?
- first excerpt fine, subsequent post excerpts shift to the right instead of displaying vertically [closed]
- Change Image Sizes for Mobile Theme
- Recommended sidebar / content widths
- Converting a theme to a child theme in a network
- Why is the `if else` not working?
- showing all recent posts in theme
- What is the difference between Twenty eleven & roots framework?
- List categories of a post hierarchically?
- Is there a list of default generated Gutenberg block CSS? Unable to align video blocks
- How to change listing type permlink?
- Adding popup support to the theme
- Calling a WP Plugin Function’s Variable in Theme Template [duplicate]
- How to make updatable custom WordPress theme?
- How can I access variables from theme in child theme? [closed]
- Local variable name in setup_postdata()
- Creating a Single Page Theme correctly
- How to display home page last modified date in anywhere of wordpress theme?
- Is it possible to echo a woocommerce prouct attribute discription?
- Child theme menu not appearing in Twenty Seventeen
- How do I remove header/page-title image in farvis theme? [closed]
- How to link post image to post link?
- WooCommerce – edit templates
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- How to dowload and edit content of a website
- On wordpress, how do i require specific dimensions from user uploads only
- WordPress Theme Developments – Start from another theme
- Slider should be display in home template [closed]
- Modify comments_popup_link output
- Best strategy for providing theme options using customizer
- Next post in category
- Can you create a custom page with content in the center already defined?
- How to migrate the menu from the site on my own theme in WordPress?
- How Does One Create a Global Variable Repository
- RSS feed url showing page not found. How to solve it?
- Custom link color or stylesheets
- Any Cool WordPress Theme Editor? [closed]
- getting id of page
- Why do some sites show themes/”themename” as the only theme?
- Is there any open source WordPress Themes?