wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_change_password_url › WordPress Filter Hooks

Since7.2.0
Deprecatedn/a
› apply_filters( 'wp_change_password_url', admin_url( 'profile.php' )
Parameters:
  • () change_password_url The URL to redirect to. Default is the user profile page.
    Required: Yes
Defined at:
Codex:

Filters the well-known change password URL (/.well-known/change-password).

By default visiting the well-known change password URL will redirect to the user's profile page when requested by a browser or password manager. Sites with a custom URL structure for modifying the passwords can modify the destination with this filter. The resulting URL is redirected using {@see \wp_safe_redirect}, if the filtered URL is on an external host, that host will need to be included as an allowed host via the {@see 'allowed_redirect_hosts'} filter.




Source

$change_password_url = apply_filters( 'wp_change_password_url', admin_url( 'profile.php' ) );