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



comment_post_redirect › WordPress过滤钩子

Since2.0.5
已弃用n/a
apply_filters( 'comment_post_redirect', $location, $comment )
参数: (2)
  • (string) $location The 'redirect_to' URI sent via $_POST.
    Required: Yes
  • (WP_Comment) $comment Comment object.
    Required: Yes
定义在:
文档:

Filters the location URI to send the commenter after posting.





源码

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