Yes it’s also possible for the password, by running a filter on lostpassword_url, which is basically the password equivalent of the login url..
Example
Basically the same as before, just changed the function and hook names.
add_filter( 'lostpassword_url', 'custom_lostpass_url' );
function custom_lostpass_url( $lostpassword_url ) {
return get_option('siteurl'). '/lostpass';
}
Related Posts:
- Login using the password from protected pages
- What did I do wrong in my functions code, that will not change the “Get New Password” text to “Send It”?
- Problem with images URL after filter applying
- Add #primary at the end of navlink permalinks on single posts
- What’s the difference between home_url() and site_url()
- remove empty paragraphs from the_content?
- wp_enqueue_script was called incorrectly
- Issues with title-tag and document_title_parts
- Remove Actions/Filters added via Anonymous Functions
- Set JPEG compression for specific custom image sizes
- Prevent “main” WPMU site_url() being returned in functions
- Custom page with variables in url. Nice url with add_rewrite_rule
- Define custom Page Template without its own .php file
- Add class to menu items of one specific menu (nav_menu_css_class)
- How to influence the information displayed on widget inside wp-admin
- Editing ‘Password Reset’ E-mail
- Removing default image size list in Media Box
- How to restrict actions and filters “properly” by conditions
- Filter the query ONLY for the search results page
- Masking logout URL
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- Using add_filter() in Widgets
- Customize WordPress Media Manager – Media Window
- How can I tell if I’m on a login page? [duplicate]
- How to reduce original image quality on upload?
- Create Custom URL structure for specific Post category
- Change the footer text on the login page
- syntax for remove_filter in parent theme with class
- Add body class of category parent
- Wrap gutenberg block ‘div’ in other elements/extra HTML
- redirect wp-login.php to another page
- Convert hyphen to underscore in permalinks
- Override parent theme function that is not hooked or in the functions.php file
- Remove Page Title from Static Frontpage
- Programmatically Add Font-Awesome Icons to Category Widget
- Get password when user registers and save it sha1 into database
- Remove bulk actions based on user role or capabilities
- Default or Preset Content for Custom Post Types
- Override a class function to include a custom template
- How to override filter in child theme?
- How do I redirect upon login a specific user based on role?
- How can I rename the WordPress AJAX URL? [duplicate]
- Removing title from page
- Logging in redirects to correct page but shows logged out content until forced refresh
- Hide some items from Screen options in dashboard for products
- How to change a certain text or term of WordPress into a custom into the whole site?
- Adding body class when post contains a specific shortcode
- Replace Archive Widget Link Text
- Exclude Empty Child Categories in Menu
- How to make unique add_filter to the_content of specific page template files – so each template gets its own addition
- Best way to programatically add “rel” attributes to page and post images
- add_filter priority problem
- Limit filter upgrader_post_install to a single plugin
- Remove default user registration, login and subscriber profiles
- How to update feed only 2-3 times a week (for Feedburner email)?
- Manipulate Output of wp_list_something: select menu instead of li’s
- Clean-up script tags
- password protected post policy
- How to use IF Statement in WordPress?
- Gravity Forms field entries into wp_query loop [closed]
- Post Pagination Showing Same Posts Every Page
- Show excerpt for only first post in query
- Remove function or filter
- modify a function filter
- is_user_logged_in not working to redirect only logged out users
- Super simple shortcode not working
- How would go about if I just want a temporary function?
- Generating rel=prev and rel=next only on wordpress categories
- How to make applyFilters function return false via functions.php
- How to filter out shortcode when displaying the_excerpt() in the loop?
- Accepted arguments value in hook functions
- Get current page_id before loop, in functions.php
- Members only site – still need the lost password page accessible
- Which action hook to use for function?
- Adding multiple taxonomy filters to functions.php
- str_replace function in theme
- Ninja form Redirect depending on text field content [closed]
- Can’t check if a post has thumbnail adding filter to get_post_metadata()
- Adding HTML to the end of every post with the Block Editor
- Last updated date function
- How to change login labels
- Modify a function without editing template
- How to set default archive image without overriding first attached image? [closed]
- How do I add Bootstrap and LESS to my migrated WordPress site?
- How to add nav menu items to a specific position within a menu
- Passing values from a widget to a function within a plugin
- Only let plugin add actions to wp_head & wp_footer on single posts
- Publish/Update post is changing image links from file url to post url
- Disable auto-resizing of uploaded images, but only for certain filename
- How to make custom column Admin>Users sortable?
- How can I get my Script to work on the Login page?
- Filter out other users comments. Visualize only own comments and editor role users’ comments
- Get Current Post ID in functions php, meta query filter
- Output and filter data from a XML url
- Add to cart php not working [closed]
- Is possible add icon in title posts only in specific tag?
- wp-comment author- url +, email filter hook
- Force to use STRONG users password and implement rule to prevent REUSE [closed]
- Removing custom meta data
- Login Redirect if Logged in from Specific Page