wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_change_password_url › WordPress过滤钩子

Since7.2.0
已弃用n/a
› apply_filters( 'wp_change_password_url', admin_url( 'profile.php' )
参数:
  • () change_password_url The URL to redirect to. Default is the user profile page.
    Required: Yes
定义在:
文档:

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.




源码

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