comment_post_redirect

过滤钩子
apply_filters( 'comment_post_redirect', $location, $comment )
参数
  • (string) $location The 'redirect_to' URI sent via $_POST.
    Required:
  • (WP_Comment) $comment Comment object.
    Required:
定义位置
相关勾子
comment_edit_redirectcomment_postcomment_on_draftcomment_edit_precomment_closed
相关方法
comment_footer_dieget_comment_to_editcomment_timecomment_textget_post_to_editis_redirect
引入
2.0.5
弃用
-

comment_post_redirect: 这个过滤器允许你修改用户提交评论后被重定向到的URL。

过滤发布后要发送给评论者的位置URI。

$location = apply_filters( 'comment_post_redirect', $location, $comment );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-06 07:33:12

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: