Wordpress 钩子:logout_redirect
文章目录
过滤注销重定向URL。
原型
apply_filters( 'logout_redirect', string $redirect_to, string $requested_redirect_to, WP_User $user )
参数
$redirect_to
(string)
重定向目标网址。
$requested_redirect_to
(string)
请求的重定向目标URL作为参数传递。
$user
(WP_User)
正在注销的用户的WP_User对象。
源文件
路径:wp-login.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/logout_redirect/
文章作者 iBllex
上次更新 2019-02-12